diff options
| author | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-27 19:37:54 -0400 |
|---|---|---|
| committer | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-27 19:37:54 -0400 |
| commit | d57d6a67479779730aa75551deecb12d04564fae (patch) | |
| tree | bcb43d22f6fc4490bea6ad9affbd2d7166e60518 /commands/Pokemon/tradegym.js | |
| parent | 4ce48074d53d128edb4b944e931f30f6f7f48ae2 (diff) | |
| download | PokeBot-d57d6a67479779730aa75551deecb12d04564fae.tar.gz PokeBot-d57d6a67479779730aa75551deecb12d04564fae.tar.bz2 PokeBot-d57d6a67479779730aa75551deecb12d04564fae.zip | |
Teams!
Diffstat (limited to 'commands/Pokemon/tradegym.js')
| -rw-r--r-- | commands/Pokemon/tradegym.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/commands/Pokemon/tradegym.js b/commands/Pokemon/tradegym.js index 3d775ca..b9d590b 100644 --- a/commands/Pokemon/tradegym.js +++ b/commands/Pokemon/tradegym.js @@ -23,18 +23,16 @@ exports.run = async (bot, msg) => { if (!msg.channel.name.startsWith('gym-')) return msg.reply('Go into one of the gym channels and try again.'); let team; - if (msg.member.roles.find('name', 'Aqua')) team = 'Aqua'; - if (msg.member.roles.find('name', 'Rocket')) team = 'Rocket'; - if (msg.member.roles.find('name', 'Magma')) team = 'Magma'; + if (msg.member.roles.find('name', 'Skull')) team = 'Skull'; + if (msg.member.roles.find('name', 'Flare')) team = 'Flare'; if (msg.channel.topic == 'Current Owner: ' + msg.author.id + '/' + msg.author.tag + '/' + team) { if (!msg.mentions.members.first()) return msg.reply('Sorry, you have to ping the recipient of the gym!'); const recipient = msg.mentions.members.first(); msg.reply('Trading gym to ' + recipient); let recipientTeam; - if (recipient.roles.find('name', 'Aqua')) recipientTeam = 'Aqua'; - if (recipient.roles.find('name', 'Rocket')) recipientTeam = 'Rocket'; - if (recipient.roles.find('name', 'Magma')) recipientTeam = 'Magma'; + if (recipient.roles.find('name', 'Skull')) recipientTeam = 'Skull'; + if (recipient.roles.find('name', 'Flare')) recipientTeam = 'Flare'; msg.channel.setTopic('Current Owner: ' + recipient.id + '/' + recipient.user.tag + '/' + recipientTeam); } else { |
