diff options
| author | 8cy <[email protected]> | 2020-04-13 05:32:35 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-13 05:32:35 -0700 |
| commit | 9dff52f7d047c905326bc2f476ede5463e00f2a0 (patch) | |
| tree | 1fec8563b3b72fde9b2ab7ad9e56a97398798685 /commands/voice/squeak.js | |
| parent | typescript (diff) | |
| download | s5nical-9dff52f7d047c905326bc2f476ede5463e00f2a0.tar.xz s5nical-9dff52f7d047c905326bc2f476ede5463e00f2a0.zip | |
typescript final
Diffstat (limited to 'commands/voice/squeak.js')
| -rw-r--r-- | commands/voice/squeak.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/commands/voice/squeak.js b/commands/voice/squeak.js deleted file mode 100644 index 9d2b6a3..0000000 --- a/commands/voice/squeak.js +++ /dev/null @@ -1,29 +0,0 @@ -const { Command } = require('discord.js-commando'); -const emoji = require('emoji-random'); - -module.exports = class SqueakVoice extends Command { - constructor(client) { - super(client, { - name: 'squeak', - group: 'voice', - memberName: 'squeak', - description: 'squeak', - guildOnly: true, - examples: ['s5n!queak'] - }); - } - 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/squeak.wav'); - - 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 |