This commit is contained in:
parent
216d91a4bd
commit
aac6274f53
1 changed files with 1 additions and 2 deletions
|
@ -64,12 +64,11 @@ module.exports = class ttsvcCommand extends Command {
|
||||||
message.say('I leaved the channel');
|
message.say('I leaved the channel');
|
||||||
} else
|
} else
|
||||||
voiceChannel.join().then(connection => {
|
voiceChannel.join().then(connection => {
|
||||||
const stream = "./tts.mp3"
|
|
||||||
const dispatcher = connection.playStream('./tts.mp3');
|
const dispatcher = connection.playStream('./tts.mp3');
|
||||||
// End at then end of the audio stream
|
// End at then end of the audio stream
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
dispatcher.on('end', () => voiceChannel.leave());
|
dispatcher.on('end', () => voiceChannel.leave());
|
||||||
}, 5000);
|
}, 3000);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue