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/voice_check_dialog.js | 11 |
5 files changed, 39 insertions, 0 deletions
diff --git a/utils/bot_voice_check.js b/utils/bot_voice_check.js new file mode 100644 index 0000000..4bef372 --- /dev/null +++ b/utils/bot_voice_check.js @@ -0,0 +1,7 @@ +module.exports = { + name: '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 new file mode 100644 index 0000000..ff528da --- /dev/null +++ b/utils/no_args.js @@ -0,0 +1,7 @@ +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 new file mode 100644 index 0000000..04a5768 --- /dev/null +++ b/utils/no_command.js @@ -0,0 +1,7 @@ +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 new file mode 100644 index 0000000..9334d91 --- /dev/null +++ b/utils/perms.js @@ -0,0 +1,7 @@ +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/voice_check_dialog.js b/utils/voice_check_dialog.js new file mode 100644 index 0000000..fabf1a8 --- /dev/null +++ b/utils/voice_check_dialog.js @@ -0,0 +1,11 @@ +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 |