Whoops, forgot something?

This commit is contained in:
Daniel Odendahl Jr
2018-10-15 14:38:40 +00:00
parent fd361e4cc5
commit 003f447f64
+3
View File
@@ -14,6 +14,8 @@ module.exports = class DECTalkCommand extends Command {
usages: 1,
duration: 10
},
userPermissions: ['CONNECT', 'SPEAK'],
clientPermissions: ['ADD_REACTIONS', 'READ_MESSAGE_HISTORY'],
args: [
{
key: 'text',
@@ -39,6 +41,7 @@ module.exports = class DECTalkCommand extends Command {
.get('http://tts.cyzon.us/tts')
.query({ text });
const dispatcher = connection.play(url);
await msg.react('🔉');
dispatcher.once('finish', () => voiceChannel.leave());
dispatcher.once('error', () => voiceChannel.leave());
return null;