diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 21:36:17 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 21:36:17 -0500 |
| commit | a0f5f94312a1e1e0d8bda7a9b36b3d952f525227 (patch) | |
| tree | 0a4b951f027799110d03c1bfa458affa2c83362d /commands | |
| parent | a5d68950de72f8dd3d7737d97b41c2b13b76e0e9 (diff) | |
| download | PokeBot-a0f5f94312a1e1e0d8bda7a9b36b3d952f525227.tar.gz PokeBot-a0f5f94312a1e1e0d8bda7a9b36b3d952f525227.tar.bz2 PokeBot-a0f5f94312a1e1e0d8bda7a9b36b3d952f525227.zip | |
try this
Diffstat (limited to 'commands')
| -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 d35b5d2..5a7d293 100644 --- a/commands/Pokemon/claim.js +++ b/commands/Pokemon/claim.js @@ -6,7 +6,7 @@ exports.run = async (bot, msg) => { } else { - const owner = msg.channel.topic.slice(15).substring(19); + const owner = msg.channel.topic.slice(15).substring(0, 19); msg.channel.send('<@' + owner + '>, come here as ' + msg.member.displayName + ' wants to battle you.'); } }; diff --git a/commands/Pokemon/drop.js b/commands/Pokemon/drop.js index 8d822a6..5ab88d5 100644 --- a/commands/Pokemon/drop.js +++ b/commands/Pokemon/drop.js @@ -4,7 +4,7 @@ exports.run = async (bot, msg) => { msg.reply('There is no owner for this gym. Claim it now with p:claim!'); } else { - const owner = msg.channel.topic.slice(15).substring(19); + const owner = msg.channel.topic.slice(15).substring(0, 19); if (msg.author.id != owner) { return msg.reply('You are not the owner of this gym.'); } |
