test again
This commit is contained in:
parent
1a3ce12638
commit
9a4c84b506
1 changed files with 6 additions and 2 deletions
|
@ -63,7 +63,11 @@ module.exports = class ttsvcCommand extends Command {
|
|||
voiceChannel.leave()
|
||||
message.say('I leaved the channel');
|
||||
} else
|
||||
voiceChannel.join().then(connection =>{const dispatcher = connection.playFile('./tts.mp3');}).catch(err => console.log(err));
|
||||
dispatcher.on("end", end => {voiceChannel.leave();});
|
||||
const dispatcher = voiceChannel.join()
|
||||
.then(connection => dispatcher = connection.play('./tts.mp3'))
|
||||
dispatcher.on('finish', () => {
|
||||
voiceChannel.leave()
|
||||
});
|
||||
|
||||
});
|
||||
})}}
|
Loading…
Reference in a new issue