diff options
Diffstat (limited to 'commands/uhhhh.js')
| -rw-r--r-- | commands/uhhhh.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/commands/uhhhh.js b/commands/uhhhh.js new file mode 100644 index 0000000..3c84d8d --- /dev/null +++ b/commands/uhhhh.js @@ -0,0 +1,20 @@ +module.exports = { + name: 'uhhhh', + description: '', + async execute(msg, args, bot) { + if (msg.member.voiceChannel && !msg.guild.voiceConnection) { + const connection = await msg.member.voiceChannel.join(); + const dispatcher = connection.playFile('./assets/audio/uhhhh.wav', { + volume: 0.5 + }); + + dispatcher.on('end', () => { + msg.member.voiceChannel.leave(); + }); + } else if (msg.guild.voiceConnection) { + 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 |