diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-28 16:37:04 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-28 16:37:04 -0500 |
| commit | 9e23c32dc1e43dfe0277ab9225778f1c4db6e9ae (patch) | |
| tree | 1bf10f0cc14c6a7a8ade06d405b6145d87a0d7e2 /commands/Pokemon | |
| parent | 0a69420c01e11e44de325db98dd856f221841ed3 (diff) | |
| parent | 7709022a53794b3c76b6eaf86dfe0a359addd6d7 (diff) | |
| download | PokeBot-9e23c32dc1e43dfe0277ab9225778f1c4db6e9ae.tar.gz PokeBot-9e23c32dc1e43dfe0277ab9225778f1c4db6e9ae.tar.bz2 PokeBot-9e23c32dc1e43dfe0277ab9225778f1c4db6e9ae.zip | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'commands/Pokemon')
| -rw-r--r-- | commands/Pokemon/claim.js | 1 | ||||
| -rw-r--r-- | commands/Pokemon/drop.js | 1 | ||||
| -rw-r--r-- | commands/Pokemon/join.js | 2 | ||||
| -rw-r--r-- | commands/Pokemon/leave.js | 2 | ||||
| -rw-r--r-- | commands/Pokemon/tradegym.js | 3 |
5 files changed, 8 insertions, 1 deletions
diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js index b3490c8..e22a944 100644 --- a/commands/Pokemon/claim.js +++ b/commands/Pokemon/claim.js @@ -19,6 +19,7 @@ * *************************************/ exports.run = async (bot, msg) => { + if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. 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 6b10ace..1746898 100644 --- a/commands/Pokemon/drop.js +++ b/commands/Pokemon/drop.js @@ -19,6 +19,7 @@ * *************************************/ exports.run = async (bot, msg) => { + if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. 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/join.js b/commands/Pokemon/join.js index 01af694..2eaa1bd 100644 --- a/commands/Pokemon/join.js +++ b/commands/Pokemon/join.js @@ -19,6 +19,8 @@ * *************************************/ exports.run = async (bot, msg, args) => { + if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!'); + if (args.length < 1) return msg.reply('Please choose a team to join'); const team = findTeam(msg, args[0]); diff --git a/commands/Pokemon/leave.js b/commands/Pokemon/leave.js index d2ca96c..11571c9 100644 --- a/commands/Pokemon/leave.js +++ b/commands/Pokemon/leave.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.roles.find('name', 'Aqua')) { msg.member.removeRole(msg.guild.roles.find('name', 'Aqua')); msg.reply('Alright, you are not longer in team Aqua.'); diff --git a/commands/Pokemon/tradegym.js b/commands/Pokemon/tradegym.js index f10e3fa..08f753c 100644 --- a/commands/Pokemon/tradegym.js +++ b/commands/Pokemon/tradegym.js @@ -19,7 +19,8 @@ * *************************************/ exports.run = async (bot, msg) => { - + if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!'); + if (!msg.channel.name.startsWith('gym-')) return msg.reply('Go into one of the gym channels and try again.'); let team; if (msg.member.roles.find('name', 'Aqua')) team = 'Aqua'; |
