From 45246cd3a31a42ce16639d75541ff665357c7a6e Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 21:23:27 -0500 Subject: try this --- commands/Pokemon/claim.js | 4 ++-- 1 file 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.'); } }; -- cgit v1.2.3