forked from Supositware/Haha-Yes
corrected typo
This commit is contained in:
parent
7adafd7cf9
commit
cbc79df4aa
1 changed files with 2 additions and 4 deletions
|
@ -62,14 +62,12 @@ class TtsvcCommand extends Command {
|
|||
// If user say "stop" make the bot leave voice channel
|
||||
if (text == 'stop') {
|
||||
voiceChannel.leave();
|
||||
message.channel.send('I leaved the channel');
|
||||
message.channel.send('I left the channel');
|
||||
} else
|
||||
voiceChannel.join().then(connection => {
|
||||
const dispatcher = connection.playStream('./ttsvc.mp3');
|
||||
// End at then end of the audio stream
|
||||
dispatcher.on('end', () => setTimeout(function(){
|
||||
voiceChannel.leave();
|
||||
}, 2000));
|
||||
dispatcher.on('end', () => voiceChannel.leave())
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue