forked from Supositware/Haha-Yes
Work again
This commit is contained in:
parent
2bd536aa85
commit
f553115bf1
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class TtsvcCommand extends Command {
|
||||||
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
||||||
try {
|
try {
|
||||||
const connection = await voiceChannel.join();
|
const connection = await voiceChannel.join();
|
||||||
const dispatcher = connection.play('../../ttsvc.mp3');
|
const dispatcher = connection.play('./ttsvc.mp3');
|
||||||
dispatcher.once('finish', () => voiceChannel.leave());
|
dispatcher.once('finish', () => voiceChannel.leave());
|
||||||
dispatcher.once('error', () => voiceChannel.leave());
|
dispatcher.once('error', () => voiceChannel.leave());
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue