pls help me
This commit is contained in:
parent
27d0e73ca6
commit
134f799556
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ module.exports = class ttsvcCommand extends Command {
|
||||||
voiceChannel.join().then(connection => {
|
voiceChannel.join().then(connection => {
|
||||||
const dispatcher = connection.playStream('./ttsvc.mp3');
|
const dispatcher = connection.playStream('./ttsvc.mp3');
|
||||||
// End at then end of the audio stream
|
// End at then end of the audio stream
|
||||||
dispatcher.on('finish', () => setTimeout(function(){
|
dispatcher.on('end', () => setTimeout(function(){
|
||||||
voiceChannel.leave();
|
voiceChannel.leave();
|
||||||
}, 2000));
|
}, 2000));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue