aboutsummaryrefslogtreecommitdiff
path: root/commands/Pokemon/forcedrop.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-30 21:13:41 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-30 21:13:41 -0400
commitd330bbf25a7a9bb48eaef4f717ce243e065f85b8 (patch)
tree2c808bb071e547bc26900aee349f880cf80822ed /commands/Pokemon/forcedrop.js
parent2622255cd43f787c37951cbc9b70168b433f32ad (diff)
downloadPokeBot-d330bbf25a7a9bb48eaef4f717ce243e065f85b8.tar.gz
PokeBot-d330bbf25a7a9bb48eaef4f717ce243e065f85b8.tar.bz2
PokeBot-d330bbf25a7a9bb48eaef4f717ce243e065f85b8.zip
whitelist
Diffstat (limited to 'commands/Pokemon/forcedrop.js')
-rw-r--r--commands/Pokemon/forcedrop.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/commands/Pokemon/forcedrop.js b/commands/Pokemon/forcedrop.js
index 2f68759..da06f5d 100644
--- a/commands/Pokemon/forcedrop.js
+++ b/commands/Pokemon/forcedrop.js
@@ -19,8 +19,9 @@
* *************************************/
exports.run = async (bot, msg) => {
- if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!');
-
+ const isWhitelist = await bot.plugins.isWhitelist(msg.guild.id);
+ if (isWhitelist) return msg.reply ('This is a Whiltelisted command. Get your server whitelisted by joining our server at https://discord.me/thedigitalregion and asking in the general channel. Sorry!');
+
if (!msg.member.hasPermission('MANAGE_MESSAGES')) return msg.reply('You don\'t have permssion to ban members.');
if (!msg.channel.name.startsWith('gym-')) return msg.reply('Go into one of the gym channels and try again.');
if (msg.channel.topic == 'Current Owner: *none*') {