diff options
Diffstat (limited to 'commands/voice/play.js')
| -rw-r--r-- | commands/voice/play.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/voice/play.js b/commands/voice/play.js index 8cbd9cd..28fbae8 100644 --- a/commands/voice/play.js +++ b/commands/voice/play.js @@ -3,7 +3,7 @@ const { Command } = require('discord.js-commando'); const { MessageEmbed } = require('discord.js'); const Youtube = require('simple-youtube-api'); const { youtubeAPI } = require('../../config.json'); -const youtube = new Youtube('AIzaSyB9xJENORzZt-GmOGx4WsNCPgKSIxhJcds'); // AIzaSyB9xJENORzZt-GmOGx4WsNCPgKSIxhJcds +const youtube = new Youtube('AIzaSyB9xJENORzZt-GmOGx4WsNCPgKSIxhJcds'); const emoji = require('emoji-random'); module.exports = class PlayVoice extends Command { @@ -28,9 +28,7 @@ module.exports = class PlayVoice extends Command { ] }); } - async run(msg, { - query - }) { + async run(msg, { query }) { const voiceChannel = msg.member.voice.channel; if (!voiceChannel) return msg.say('join a channel and try again'); |