aboutsummaryrefslogtreecommitdiff
path: root/commands/Pokemon
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-10 16:38:51 -0500
committerUnknown <jtsshieh@outlook.com>2018-03-10 16:38:51 -0500
commitfc1b1050825b6dd42d7f068075a9f43bb449fefb (patch)
tree912d430b0710e4fe0331c4f6c38981b053dfcec4 /commands/Pokemon
parentc76a7c72a2464fb1dd8c79dcde0ade0372c70ed8 (diff)
downloadPokeBot-fc1b1050825b6dd42d7f068075a9f43bb449fefb.tar.gz
PokeBot-fc1b1050825b6dd42d7f068075a9f43bb449fefb.tar.bz2
PokeBot-fc1b1050825b6dd42d7f068075a9f43bb449fefb.zip
mores stupid things
Diffstat (limited to 'commands/Pokemon')
-rw-r--r--commands/Pokemon/claim.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js
index 7041c77..461fc66 100644
--- a/commands/Pokemon/claim.js
+++ b/commands/Pokemon/claim.js
@@ -50,7 +50,10 @@ exports.run = async (bot, msg) => {
if (field != undefined) {
const user = msg.guild.members.find(member => member.user.username === field);
if (user != undefined) {
- if (user.id == owner) return msg.channel.send('The owner has not been defeated!');
+ if (user.id == owner) {
+ msg.channel.send('The owner has not been defeated!');
+ bot.removeListener('message', this);
+ }
if (user.id == msg.author.id) {
msg.channel.send('The owner has been defeated! Transfaring gym!');
let recipientTeam;