diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-03-10 16:38:51 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-10 16:38:51 -0500 |
| commit | fc1b1050825b6dd42d7f068075a9f43bb449fefb (patch) | |
| tree | 912d430b0710e4fe0331c4f6c38981b053dfcec4 | |
| parent | c76a7c72a2464fb1dd8c79dcde0ade0372c70ed8 (diff) | |
| download | PokeBot-fc1b1050825b6dd42d7f068075a9f43bb449fefb.tar.gz PokeBot-fc1b1050825b6dd42d7f068075a9f43bb449fefb.tar.bz2 PokeBot-fc1b1050825b6dd42d7f068075a9f43bb449fefb.zip | |
mores stupid things
| -rw-r--r-- | commands/Pokemon/claim.js | 5 |
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; |
