DOSENT WORK TO FIX

This commit is contained in:
Loïc Bersier 2018-09-08 23:09:33 +02:00
parent 557fb214ca
commit 2a079c73ca

View file

@ -6,7 +6,7 @@ module.exports = class MusicCommand extends Command {
name: 'music',
group: 'fun',
memberName: 'music',
description: 'Play youtube link in vocal',
description: 'Play youtube link in vocal ( DOSENT WORK RN TRYING TO FIX IT )',
args: [
{
key: 'ytblink',
@ -19,9 +19,11 @@ module.exports = class MusicCommand extends Command {
run(message, { ytblink }) {
const { voiceChannel } = message.member;
if (!voiceChannel) {
return message.reply('please join a voice channel first!');
}
} else
if (ytblink == 'stop') {
voiceChannel.leave()
@ -33,6 +35,6 @@ module.exports = class MusicCommand extends Command {
dispatcher.on('end', () => voiceChannel.leave());
});
}
}
};