it caused problem
This commit is contained in:
parent
c376cce0a8
commit
c003e27609
1 changed files with 0 additions and 2 deletions
|
@ -66,9 +66,7 @@ module.exports = class ttsvcCommand extends Command {
|
|||
voiceChannel.join().then(connection => {
|
||||
const dispatcher = connection.playStream('./tts.mp3');
|
||||
// End at then end of the audio stream
|
||||
setTimeout(function(){
|
||||
dispatcher.on('end', () => voiceChannel.leave());
|
||||
}, 2000);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue