diff options
| -rw-r--r-- | commands/Pokemon/join.js | 2 | ||||
| -rw-r--r-- | commands/Pokemon/leave.js | 2 | ||||
| -rw-r--r-- | commands/Pokemon/tradegym.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/commands/Pokemon/join.js b/commands/Pokemon/join.js index 2eaa1bd..99640d1 100644 --- a/commands/Pokemon/join.js +++ b/commands/Pokemon/join.js @@ -20,7 +20,7 @@ exports.run = async (bot, msg, args) => { if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!'); - + if (args.length < 1) return msg.reply('Please choose a team to join'); const team = findTeam(msg, args[0]); diff --git a/commands/Pokemon/leave.js b/commands/Pokemon/leave.js index 11571c9..c885060 100644 --- a/commands/Pokemon/leave.js +++ b/commands/Pokemon/leave.js @@ -20,7 +20,7 @@ exports.run = async (bot, msg) => { if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!'); - + if (msg.member.roles.find('name', 'Aqua')) { msg.member.removeRole(msg.guild.roles.find('name', 'Aqua')); msg.reply('Alright, you are not longer in team Aqua.'); diff --git a/commands/Pokemon/tradegym.js b/commands/Pokemon/tradegym.js index 08f753c..3d775ca 100644 --- a/commands/Pokemon/tradegym.js +++ b/commands/Pokemon/tradegym.js @@ -20,7 +20,7 @@ exports.run = async (bot, msg) => { if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!'); - + 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'; |
