From a0f5f94312a1e1e0d8bda7a9b36b3d952f525227 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 21:36:17 -0500 Subject: try this --- commands/Pokemon/claim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/Pokemon/claim.js') 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.'); } }; -- cgit v1.2.3