aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-30 21:20:03 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-30 21:20:03 -0400
commitb4e267a6bc456e4b72602966011a18e21559ac8e (patch)
tree9c444a7794385d668ddcd686eddf605539f941c4
parentd9d41aa8a2593d9e9171af9de93c043fe96ea5e6 (diff)
downloadPokeBot-b4e267a6bc456e4b72602966011a18e21559ac8e.tar.gz
PokeBot-b4e267a6bc456e4b72602966011a18e21559ac8e.tar.bz2
PokeBot-b4e267a6bc456e4b72602966011a18e21559ac8e.zip
i can feel the day where i don't need to test anything
-rw-r--r--commands/Pokemon/claim.js4
-rw-r--r--commands/Pokemon/drop.js4
-rw-r--r--commands/Pokemon/forcedrop.js4
-rw-r--r--commands/Pokemon/join.js4
-rw-r--r--commands/Pokemon/leave.js4
-rw-r--r--commands/Pokemon/tradegym.js4
6 files changed, 12 insertions, 12 deletions
diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js
index 3f9ba6c..4ad8a78 100644
--- a/commands/Pokemon/claim.js
+++ b/commands/Pokemon/claim.js
@@ -19,8 +19,8 @@
* *************************************/
exports.run = async (bot, msg) => {
- 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!');
+ const isWhitelist = await bot.plugins.whitelist.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.channel.name.startsWith('gym-')) return msg.reply('Go into one of the gym channels and try again.');
if (msg.channel.topic == 'Current Owner: *none*') {
let team;
diff --git a/commands/Pokemon/drop.js b/commands/Pokemon/drop.js
index a6ff953..9f6747d 100644
--- a/commands/Pokemon/drop.js
+++ b/commands/Pokemon/drop.js
@@ -19,8 +19,8 @@
* *************************************/
exports.run = async (bot, msg) => {
- 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!');
+ const isWhitelist = await bot.plugins.whitelist.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.channel.name.startsWith('gym-')) return msg.reply('Go into one of the gym channels and try again.');
if (msg.channel.topic == 'Current Owner: *none*') {
msg.reply('There is no owner for this gym. Claim it now with p:claim!');
diff --git a/commands/Pokemon/forcedrop.js b/commands/Pokemon/forcedrop.js
index da06f5d..b2fae13 100644
--- a/commands/Pokemon/forcedrop.js
+++ b/commands/Pokemon/forcedrop.js
@@ -19,8 +19,8 @@
* *************************************/
exports.run = async (bot, msg) => {
- 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!');
+ const isWhitelist = await bot.plugins.whitelist.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.');
diff --git a/commands/Pokemon/join.js b/commands/Pokemon/join.js
index bae820a..9b4a304 100644
--- a/commands/Pokemon/join.js
+++ b/commands/Pokemon/join.js
@@ -19,8 +19,8 @@
* *************************************/
exports.run = async (bot, msg, args) => {
- 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!');
+ const isWhitelist = await bot.plugins.whitelist.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 (args.length < 1) return msg.reply('Please choose a team to join');
diff --git a/commands/Pokemon/leave.js b/commands/Pokemon/leave.js
index 5682d8e..716608b 100644
--- a/commands/Pokemon/leave.js
+++ b/commands/Pokemon/leave.js
@@ -19,8 +19,8 @@
* *************************************/
exports.run = async (bot, msg) => {
- 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!');
+ const isWhitelist = await bot.plugins.whitelist.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.roles.find('name', 'Skull')) {
msg.member.removeRole(msg.guild.roles.find('name', 'Skull'));
diff --git a/commands/Pokemon/tradegym.js b/commands/Pokemon/tradegym.js
index fd08147..f19fdce 100644
--- a/commands/Pokemon/tradegym.js
+++ b/commands/Pokemon/tradegym.js
@@ -19,8 +19,8 @@
* *************************************/
exports.run = async (bot, msg) => {
- 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!');
+ const isWhitelist = await bot.plugins.whitelist.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.channel.name.startsWith('gym-')) return msg.reply('Go into one of the gym channels and try again.');
let team;