DOSENT WORK TO FIX
This commit is contained in:
parent
557fb214ca
commit
2a079c73ca
1 changed files with 7 additions and 5 deletions
|
@ -6,7 +6,7 @@ module.exports = class MusicCommand extends Command {
|
||||||
name: 'music',
|
name: 'music',
|
||||||
group: 'fun',
|
group: 'fun',
|
||||||
memberName: 'music',
|
memberName: 'music',
|
||||||
description: 'Play youtube link in vocal',
|
description: 'Play youtube link in vocal ( DOSENT WORK RN TRYING TO FIX IT )',
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'ytblink',
|
key: 'ytblink',
|
||||||
|
@ -19,10 +19,12 @@ module.exports = class MusicCommand extends Command {
|
||||||
|
|
||||||
run(message, { ytblink }) {
|
run(message, { ytblink }) {
|
||||||
const { voiceChannel } = message.member;
|
const { voiceChannel } = message.member;
|
||||||
|
|
||||||
if (!voiceChannel) {
|
if (!voiceChannel) {
|
||||||
return message.reply('please join a voice channel first!');
|
return message.reply('please join a voice channel first!');
|
||||||
}
|
|
||||||
|
} else
|
||||||
|
|
||||||
if (ytblink == 'stop') {
|
if (ytblink == 'stop') {
|
||||||
voiceChannel.leave()
|
voiceChannel.leave()
|
||||||
} else
|
} else
|
||||||
|
@ -33,6 +35,6 @@ module.exports = class MusicCommand extends Command {
|
||||||
|
|
||||||
dispatcher.on('end', () => voiceChannel.leave());
|
dispatcher.on('end', () => voiceChannel.leave());
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
|
Loading…
Reference in a new issue