diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 21:23:27 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 21:23:27 -0500 |
| commit | 45246cd3a31a42ce16639d75541ff665357c7a6e (patch) | |
| tree | 2e3d4e55f82f5df6316f6ddadb4abd2e3abea253 /commands | |
| parent | 8e185048a5a998f3ff49d42a7894aef88d619481 (diff) | |
| download | PokeBot-45246cd3a31a42ce16639d75541ff665357c7a6e.tar.gz PokeBot-45246cd3a31a42ce16639d75541ff665357c7a6e.tar.bz2 PokeBot-45246cd3a31a42ce16639d75541ff665357c7a6e.zip | |
try this
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/Pokemon/claim.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js index dccbd29..aa11ed1 100644 --- a/commands/Pokemon/claim.js +++ b/commands/Pokemon/claim.js @@ -5,8 +5,8 @@ exports.run = async (bot, msg) => { msg.channel.setTopic('Current Owner: ' + msg.author.id + '/' + msg.author.tag); } else { - const owner = msg.channel.topic.slice(15).substring(msg.author.id.length); - msg.channel.send('<@' + owner + '>, come here as ' + msg.author + 'wants to battle you.'); + const owner = msg.channel.topic.slice(15).substring(0, msg.author.id.length); + msg.channel.send('<@' + owner + '>, come here as ' + msg.author + ' wants to battle you.'); } }; |
