From 1e46326ed2dd69b2df19c4ff7a83b329ad1d8187 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 21:30:55 -0500 Subject: more fix --- commands/Pokemon/claim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js index 3a45e36..aa891ef 100644 --- a/commands/Pokemon/claim.js +++ b/commands/Pokemon/claim.js @@ -5,7 +5,7 @@ exports.run = async (bot, msg) => { msg.channel.setTopic('Current Owner: ' + msg.author.tag + '/' + msg.author.id); } else { - const owner = msg.channel.topic.slice(15).substring(msg.author.tag.length + 1); + const owner = msg.channel.topic.slice(15).substring(msg.author.tag.length - 1); msg.channel.send('<@' + owner + '>, come here as ' + msg.member.displayName + ' wants to battle you.'); } }; -- cgit v1.2.3