diff options
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/bot_voice_check.js | 7 | ||||
| -rw-r--r-- | utils/no_args.js | 7 | ||||
| -rw-r--r-- | utils/no_command.js | 7 | ||||
| -rw-r--r-- | utils/perms.js | 7 | ||||
| -rw-r--r-- | utils/user_voice_check.js | 7 | ||||
| -rw-r--r-- | utils/voice_check.js | 19 | ||||
| -rw-r--r-- | utils/voice_check_dialog.js | 11 |
7 files changed, 19 insertions, 46 deletions
diff --git a/utils/bot_voice_check.js b/utils/bot_voice_check.js deleted file mode 100644 index e68eab9..0000000 --- a/utils/bot_voice_check.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - name: 'bot_voice_check', - description: '', - async execute(msg, args, bot) { - if (msg.guild.voiceConnection) return true; - } -};
\ No newline at end of file diff --git a/utils/no_args.js b/utils/no_args.js deleted file mode 100644 index ff528da..0000000 --- a/utils/no_args.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - name: 'no_args', - description: '', - async execute(msg, args, bot) { - msg.channel.send(`invalid argument(s). type \`${config.prefixes.main}help\` for more information.`); - } -};
\ No newline at end of file diff --git a/utils/no_command.js b/utils/no_command.js deleted file mode 100644 index 04a5768..0000000 --- a/utils/no_command.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - name: 'no_command', - description: '', - async execute(msg, args, bot) { - msg.channel.send(`invalid or unspecified command. type \`${config.prefixes.main}help\`.`); - } -};
\ No newline at end of file diff --git a/utils/perms.js b/utils/perms.js deleted file mode 100644 index 9334d91..0000000 --- a/utils/perms.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - name: 'perms', - description: '', - async execute(msg, args, bot) { - if (msg.member.hasPermission(p)) return true; - } -};
\ No newline at end of file diff --git a/utils/user_voice_check.js b/utils/user_voice_check.js deleted file mode 100644 index effbd2d..0000000 --- a/utils/user_voice_check.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - name: 'user_voice_check', - description: '', - async execute(msg, args, bot) { - if (msg.member.voiceChannel) return true; - } -};
\ No newline at end of file diff --git a/utils/voice_check.js b/utils/voice_check.js new file mode 100644 index 0000000..cae410e --- /dev/null +++ b/utils/voice_check.js @@ -0,0 +1,19 @@ +const { Command } = require('discord.js-commando'); + +module.exports = class VoiceCheckDialog extends Command { + constructor(client) { + super(client, { + name: 'voice_check_dialog', + group: 'utils', + memberName: 'voice_check_dialog', + description: '', + }); + } + run(msg) { + 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 diff --git a/utils/voice_check_dialog.js b/utils/voice_check_dialog.js deleted file mode 100644 index fabf1a8..0000000 --- a/utils/voice_check_dialog.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - name: 'voice_check_dialog', - description: '', - async execute(msg, args, bot) { - 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 |