diff options
| author | Justin <jtsshieh@outlook.com> | 2019-10-30 22:28:49 -0400 |
|---|---|---|
| committer | Justin <jtsshieh@outlook.com> | 2019-10-30 22:28:49 -0400 |
| commit | 2c3bf24f5996753df4a2d4456949fc0b636f6366 (patch) | |
| tree | 27700e9b0557d23a6fb0cbd9d4058d60d725caa0 /commands/Owners Only/modifycredits.js | |
| parent | 5d778acf2066546de30f53d4d10c92a043a44a3a (diff) | |
| download | PokeBot-2c3bf24f5996753df4a2d4456949fc0b636f6366.tar.gz PokeBot-2c3bf24f5996753df4a2d4456949fc0b636f6366.tar.bz2 PokeBot-2c3bf24f5996753df4a2d4456949fc0b636f6366.zip | |
Added an optional checkPermission function and upgraded quick.db.
Diffstat (limited to 'commands/Owners Only/modifycredits.js')
| -rw-r--r-- | commands/Owners Only/modifycredits.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/commands/Owners Only/modifycredits.js b/commands/Owners Only/modifycredits.js index 050d74d..6ec7506 100644 --- a/commands/Owners Only/modifycredits.js +++ b/commands/Owners Only/modifycredits.js @@ -8,8 +8,6 @@ * *************************************/ exports.run = async (bot, msg) => { - if (!['242775871059001344', '247221105515823104', '236279900728721409', '269516487566426112'].includes(msg.author.id)) return msg.reply('Nope! You need the person who created this bot to use this command.'); - let user; if (!msg.mentions.users.first()) { user = msg.author; @@ -24,6 +22,11 @@ exports.run = async (bot, msg) => { msg.channel.send(`Reset ${user.tag}'s credits.`); }; +exports.checkPermission = (bot, member) => { + if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(member.id)) return false; + return true; +} + exports.conf = { aliases: [], guildOnly: true, |
