summaryrefslogtreecommitdiff
path: root/src/commands/voice/wahoo.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/voice/wahoo.js')
-rw-r--r--src/commands/voice/wahoo.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/commands/voice/wahoo.js b/src/commands/voice/wahoo.js
deleted file mode 100644
index a791795..0000000
--- a/src/commands/voice/wahoo.js
+++ /dev/null
@@ -1,30 +0,0 @@
-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