// TODO: eventually fix this by uploading the audio to youtube and if i havent already copy and paste the code from abee /* const { Command } = require('discord.js-commando'); const emoji = require('emoji-random'); module.exports = class WahooVoice extends Command { constructor(client) { super(client, { name: 'wahoo', aliases: ['mario'], group: 'voice', memberName: 'wahoo', description: 'wahoo', guildOnly: true, examples: ['s5n!wahoo', 's5n!mario'] }); } async run(msg) { if (msg.member.voice.channel && !msg.guild.voice) { const connection = await msg.member.voice.channel.join(); const dispatcher = connection.play('../../../assets/audio/wahoo.mp3'); dispatcher.on('finish', () => { connection.disconnect(); }); } else if (msg.guild.voice) { msg.reply('i\'m already playing that lol ' + emoji.random()); } else { msg.reply('you need to join a voice channel first silly ' + emoji.random()); } } };