aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/Pokemon/claim.js2
-rw-r--r--commands/Pokemon/drop.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js
index 5a7d293..d2a9549 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(0, 19);
+ const owner = msg.channel.topic.slice(15).substring(0, 18);
msg.channel.send('<@' + owner + '>, come here as ' + msg.member.displayName + ' wants to battle you.');
}
};
diff --git a/commands/Pokemon/drop.js b/commands/Pokemon/drop.js
index 5ab88d5..25266f4 100644
--- a/commands/Pokemon/drop.js
+++ b/commands/Pokemon/drop.js
@@ -4,7 +4,7 @@ exports.run = async (bot, msg) => {
msg.reply('There is no owner for this gym. Claim it now with p:claim!');
}
else {
- const owner = msg.channel.topic.slice(15).substring(0, 19);
+ const owner = msg.channel.topic.slice(15).substring(0, 18);
if (msg.author.id != owner) {
return msg.reply('You are not the owner of this gym.');
}