diff options
Diffstat (limited to 'commands/Pokemon')
| -rw-r--r-- | commands/Pokemon/claim.js | 2 | ||||
| -rw-r--r-- | 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!'); } |
