aboutsummaryrefslogtreecommitdiff
path: root/commands/Pokemon
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-02-27 16:14:16 -0500
committerUnknown <jtsshieh@outlook.com>2018-02-27 16:14:16 -0500
commitc1054ad794fcd64199eefe371e9d7f328323d5d2 (patch)
treef9d80a8cb10dea58004a5190caf80085e3843623 /commands/Pokemon
parentff7fecb46e65ef9bdeddc348ab9e9a907fc8573a (diff)
downloadPokeBot-c1054ad794fcd64199eefe371e9d7f328323d5d2.tar.gz
PokeBot-c1054ad794fcd64199eefe371e9d7f328323d5d2.tar.bz2
PokeBot-c1054ad794fcd64199eefe371e9d7f328323d5d2.zip
bug fixes
Diffstat (limited to 'commands/Pokemon')
-rw-r--r--commands/Pokemon/claim.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js
index f9e71ee..e7b687c 100644
--- a/commands/Pokemon/claim.js
+++ b/commands/Pokemon/claim.js
@@ -35,6 +35,7 @@ exports.run = async (bot, msg) => {
if (msg.member.roles.find('name', 'Rocket')) team = 'Rocket';
if (msg.member.roles.find('name', 'Magma')) team = 'Magma';
if (!team) return msg.reply('You have to join a team before you can claim a gym.');
+ if (msg.channel.name == 'gym-chara') return msg.reply('You can\'t battle in this gym')
const owner = msg.channel.topic.slice(15).substring(0, 18);
if (msg.guild.members.find('id', owner).roles.find('name', team)) return msg.reply('Don\'t try battling your own team. They won\'t like you.');
msg.channel.send('<@' + owner + '>, come here as ' + msg.member.displayName + ' wants to battle you.');