aboutsummaryrefslogtreecommitdiff
path: root/commands/Pokemon/claim.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-02-24 21:30:55 -0500
committerUnknown <jtsshieh@outlook.com>2018-02-24 21:30:55 -0500
commit1e46326ed2dd69b2df19c4ff7a83b329ad1d8187 (patch)
treee8287b2300c5a1fd5718911a17ac8023d3dd68a0 /commands/Pokemon/claim.js
parentc25a35d5a18575b2e0ddd2cc189351492ca8d0cc (diff)
downloadPokeBot-1e46326ed2dd69b2df19c4ff7a83b329ad1d8187.tar.gz
PokeBot-1e46326ed2dd69b2df19c4ff7a83b329ad1d8187.tar.bz2
PokeBot-1e46326ed2dd69b2df19c4ff7a83b329ad1d8187.zip
more fix
Diffstat (limited to 'commands/Pokemon/claim.js')
-rw-r--r--commands/Pokemon/claim.js2
1 files changed, 1 insertions, 1 deletions
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.');
}
};