diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-03-02 16:11:13 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-02 16:11:13 -0500 |
| commit | 77ceb3c6853e8c2b7ff0121bdcc17bf2148783d0 (patch) | |
| tree | 604425c5c41b3865193d08c1ccc4f86e1383dd33 | |
| parent | 9f5472b803da3234d339496378fba1491bf1ed8a (diff) | |
| download | PokeBot-77ceb3c6853e8c2b7ff0121bdcc17bf2148783d0.tar.gz PokeBot-77ceb3c6853e8c2b7ff0121bdcc17bf2148783d0.tar.bz2 PokeBot-77ceb3c6853e8c2b7ff0121bdcc17bf2148783d0.zip | |
eslint
| -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'; |
