forked from Supositware/Haha-Yes
someone send help
This commit is contained in:
parent
6c62f09daa
commit
d3630feef9
1 changed files with 4 additions and 1 deletions
|
@ -56,7 +56,10 @@ class TtsvcCommand extends Command {
|
|||
|
||||
if (message.member.voice.channel) {
|
||||
const connection = await message.member.voice.channel.join();
|
||||
connection.play('../../ttsvc');
|
||||
const dispatcher = connection.play('../../ttsvc.mp3');
|
||||
dispatcher.on('finish', () => {
|
||||
dispatcher.destroy();
|
||||
});
|
||||
} else {
|
||||
message.reply('You need to join a voice channel first!');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue