forked from Supositware/Haha-Yes
it work now
This commit is contained in:
parent
657980d6eb
commit
6430af5a58
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ module.exports = class ttsvcCommand extends Command {
|
|||
const stream = "./tts.mp3"
|
||||
const dispatcher = connection.playStream('./tts.mp3');
|
||||
// End at then end of the audio stream
|
||||
await dispatcher.on('end', () => voiceChannel.leave());
|
||||
setTimeout(function(){
|
||||
dispatcher.on('end', () => voiceChannel.leave());
|
||||
}, 1000);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue