From 77ceb3c6853e8c2b7ff0121bdcc17bf2148783d0 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 2 Mar 2018 16:11:13 -0500 Subject: eslint --- commands/Pokemon/join.js | 2 +- commands/Pokemon/leave.js | 2 +- commands/Pokemon/tradegym.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'commands/Pokemon') 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'; -- cgit v1.2.3