aboutsummaryrefslogtreecommitdiff
path: root/commands/Pokemon/claim.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-02-24 21:26:44 -0500
committerUnknown <jtsshieh@outlook.com>2018-02-24 21:26:44 -0500
commit42a407e8cd29d1ebfb8df8dcfbf4e9e8e8de4db6 (patch)
treeb58fad2d22bf33b8561415817faed25e7d07a168 /commands/Pokemon/claim.js
parente12f2cbace0c67631afab45a0d34360eb6e73fe7 (diff)
downloadPokeBot-42a407e8cd29d1ebfb8df8dcfbf4e9e8e8de4db6.tar.gz
PokeBot-42a407e8cd29d1ebfb8df8dcfbf4e9e8e8de4db6.tar.bz2
PokeBot-42a407e8cd29d1ebfb8df8dcfbf4e9e8e8de4db6.zip
test
Diffstat (limited to 'commands/Pokemon/claim.js')
-rw-r--r--commands/Pokemon/claim.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js
index e0d034e..3a45e36 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.tag + '/' + msg.author.id);
}
else {
- const owner = msg.channel.topic.slice(15).substring(msg.author.tag.length);
- msg.channel.send('<@' + owner + '>, come here as ' + msg.author.displayName + ' wants to battle you.');
+ 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.');
}
};