From c95ab5278387f7e614b384a72b209633fdb75a56 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 21:40:27 -0500 Subject: fixy --- commands/Pokemon/claim.js | 2 +- commands/Pokemon/drop.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js index d2a9549..1f98a30 100644 --- a/commands/Pokemon/claim.js +++ b/commands/Pokemon/claim.js @@ -1,5 +1,5 @@ exports.run = async (bot, msg) => { - if (!msg.channel.topic.startsWith('Current Owner:')) return msg.reply('Go into one of the gym channels and try again.'); + 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('Alright, you have claimed this gym as yours! Be ready to battle anyone who approaches you'); msg.channel.setTopic('Current Owner: ' + msg.author.id + '/' + msg.author.tag); diff --git a/commands/Pokemon/drop.js b/commands/Pokemon/drop.js index 25266f4..afe76df 100644 --- a/commands/Pokemon/drop.js +++ b/commands/Pokemon/drop.js @@ -1,5 +1,5 @@ exports.run = async (bot, msg) => { - if (!msg.channel.topic.startsWith('Current Owner:')) return msg.reply('Go into one of the gym channels and try again.'); + 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!'); } -- cgit v1.2.3