aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorTheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com>2018-03-11 19:09:40 -0400
committerTheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com>2018-03-11 19:09:40 -0400
commit81e8c6088d82ff8e3d54fe8fb739ce6a3f334dd7 (patch)
treef5e0e903cc82a4ef55d17cbf386467a982784260 /commands
parente683a3ae5b734654fd8fcd14b959a04db5f1f7ca (diff)
downloadPokeBot-81e8c6088d82ff8e3d54fe8fb739ce6a3f334dd7.tar.gz
PokeBot-81e8c6088d82ff8e3d54fe8fb739ce6a3f334dd7.tar.bz2
PokeBot-81e8c6088d82ff8e3d54fe8fb739ce6a3f334dd7.zip
more exclusive commands
Diffstat (limited to 'commands')
-rw-r--r--commands/Moderation/interrogate.js2
-rw-r--r--commands/Moderation/jail.js2
-rw-r--r--commands/Moderation/timeout.js2
3 files changed, 6 insertions, 0 deletions
diff --git a/commands/Moderation/interrogate.js b/commands/Moderation/interrogate.js
index c2b2215..d68e68a 100644
--- a/commands/Moderation/interrogate.js
+++ b/commands/Moderation/interrogate.js
@@ -19,6 +19,8 @@
* *************************************/
exports.run = async (bot, msg) => {
+ if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!');
+
if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permission to interrogate others. Rip-off detectives...');
if (!msg.guild.member(bot.user).hasPermission('MANAGE_ROLES')) return msg.reply('I cannot interrogate anyone.');
diff --git a/commands/Moderation/jail.js b/commands/Moderation/jail.js
index 30baa85..80c40a3 100644
--- a/commands/Moderation/jail.js
+++ b/commands/Moderation/jail.js
@@ -19,6 +19,8 @@
* *************************************/
exports.run = async (bot, msg) => {
+ if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!');
+
if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permission to put members in jail.');
if (!msg.guild.member(bot.user).hasPermission('MANAGE_ROLES')) return msg.reply('I cannot put anyone in jail.');
diff --git a/commands/Moderation/timeout.js b/commands/Moderation/timeout.js
index 8c21c7b..cc0aa7d 100644
--- a/commands/Moderation/timeout.js
+++ b/commands/Moderation/timeout.js
@@ -19,6 +19,8 @@
* *************************************/
exports.run = async (bot, msg) => {
+ if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!');
+
if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permission to put members in time-out..');
if (!msg.guild.member(bot.user).hasPermission('MANAGE_ROLES')) return msg.reply('I cannot put anyone in time-out.');