aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-02-24 21:40:27 -0500
committerUnknown <jtsshieh@outlook.com>2018-02-24 21:40:27 -0500
commitc95ab5278387f7e614b384a72b209633fdb75a56 (patch)
tree556e439c112f2d708fe1ea40d79e3bdc0f0fcdf6
parent18470739063d349687eec5c5bd1b58c263fad8e5 (diff)
downloadPokeBot-c95ab5278387f7e614b384a72b209633fdb75a56.tar.gz
PokeBot-c95ab5278387f7e614b384a72b209633fdb75a56.tar.bz2
PokeBot-c95ab5278387f7e614b384a72b209633fdb75a56.zip
fixy
-rw-r--r--commands/Pokemon/claim.js2
-rw-r--r--commands/Pokemon/drop.js2
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!');
}