diff options
| author | 8cy <[email protected]> | 2020-04-10 14:26:04 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-10 14:26:04 -0700 |
| commit | 02d47957481f1385a92cd20e73206b27745c21d1 (patch) | |
| tree | ab521bf6538d8c8389d9b336e9c5c3c1f7e6e103 /commands/voice/moan.js | |
| parent | add startup msg, v2.0.4 (diff) | |
| download | s5nical-02d47957481f1385a92cd20e73206b27745c21d1.tar.xz s5nical-02d47957481f1385a92cd20e73206b27745c21d1.zip | |
reworks, v2.0.5
Diffstat (limited to 'commands/voice/moan.js')
| -rw-r--r-- | commands/voice/moan.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/commands/voice/moan.js b/commands/voice/moan.js new file mode 100644 index 0000000..a28480f --- /dev/null +++ b/commands/voice/moan.js @@ -0,0 +1,29 @@ +const { Command } = require('discord.js-commando'); +const emoji = require('emoji-random'); + +module.exports = class MoanVoice extends Command { + constructor(client) { + super(client, { + name: 'moan', + aliases: ['uhhhh'], + group: 'voice', + memberName: 'moan', + description: 'uhhhh', + guildOnly: true + }); + } + 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/uhhhh.wav'); + + dispatcher.on('finish', () => { + connection.disconnect(); + }); + } else if (msg.guild.voice) { + msg.reply('i\'m already playing that lol'); + } else { + msg.reply('you need to join a voice channel first silly'); + } + } +};
\ No newline at end of file |