forked from Supositware/Haha-Yes
testing somethign else
This commit is contained in:
parent
2be2a9cbb3
commit
1a3ce12638
1 changed files with 3 additions and 4 deletions
|
@ -63,8 +63,7 @@ module.exports = class ttsvcCommand extends Command {
|
||||||
voiceChannel.leave()
|
voiceChannel.leave()
|
||||||
message.say('I leaved the channel');
|
message.say('I leaved the channel');
|
||||||
} else
|
} else
|
||||||
voiceChannel.join().then(connection => {
|
voiceChannel.join().then(connection =>{const dispatcher = connection.playFile('./tts.mp3');}).catch(err => console.log(err));
|
||||||
const dispatcher = connection.playStream('./tts.mp3');
|
dispatcher.on("end", end => {voiceChannel.leave();});
|
||||||
});
|
});
|
||||||
});
|
})}}
|
||||||
})}}
|
|
Loading…
Reference in a new issue