diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 21:40:27 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 21:40:27 -0500 |
| commit | c95ab5278387f7e614b384a72b209633fdb75a56 (patch) | |
| tree | 556e439c112f2d708fe1ea40d79e3bdc0f0fcdf6 /commands/Pokemon/claim.js | |
| parent | 18470739063d349687eec5c5bd1b58c263fad8e5 (diff) | |
| download | PokeBot-c95ab5278387f7e614b384a72b209633fdb75a56.tar.gz PokeBot-c95ab5278387f7e614b384a72b209633fdb75a56.tar.bz2 PokeBot-c95ab5278387f7e614b384a72b209633fdb75a56.zip | |
fixy
Diffstat (limited to 'commands/Pokemon/claim.js')
| -rw-r--r-- | commands/Pokemon/claim.js | 2 |
1 files changed, 1 insertions, 1 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); |
