diff options
| author | 8cy <[email protected]> | 2020-04-15 02:58:49 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-15 02:58:49 -0700 |
| commit | f4776cce45fba4380d6652fef5b9a6fbf78f8e16 (patch) | |
| tree | 1fbdc404a6d4d8b6a8cd17cc26602b6e7d6c639e /fix/voice/wahoo.js | |
| parent | The Start (diff) | |
| download | dep-core-test.tar.xz dep-core-test.zip | |
The Uwuficationtest
Diffstat (limited to 'fix/voice/wahoo.js')
| -rw-r--r-- | fix/voice/wahoo.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/fix/voice/wahoo.js b/fix/voice/wahoo.js new file mode 100644 index 0000000..25424f5 --- /dev/null +++ b/fix/voice/wahoo.js @@ -0,0 +1,32 @@ +// 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()); + } + } +};
\ No newline at end of file |