diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-03-07 21:27:00 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-07 21:27:00 -0500 |
| commit | f6e20b3de721262301342d824af3bd1b25b8d79f (patch) | |
| tree | 59256f63bd8fe0e5fe026068d10875296633f921 /commands/Pokemon/join.js | |
| parent | 9b4803e67d64681445d7e0fdda182e3050a569f7 (diff) | |
| download | PokeBot-f6e20b3de721262301342d824af3bd1b25b8d79f.tar.gz PokeBot-f6e20b3de721262301342d824af3bd1b25b8d79f.tar.bz2 PokeBot-f6e20b3de721262301342d824af3bd1b25b8d79f.zip | |
lint me
Diffstat (limited to 'commands/Pokemon/join.js')
| -rw-r--r-- | commands/Pokemon/join.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/commands/Pokemon/join.js b/commands/Pokemon/join.js index 99640d1..6be75be 100644 --- a/commands/Pokemon/join.js +++ b/commands/Pokemon/join.js @@ -24,27 +24,27 @@ exports.run = async (bot, msg, args) => { if (args.length < 1) return msg.reply('Please choose a team to join'); const team = findTeam(msg, args[0]); - switch(args[0]) + switch (args[0]) { - case 'aqua': { - msg.member.addRole(msg.guild.roles.find('name', 'Aqua')); - msg.reply(`Alright, ${team ? 'you have left team ' + team + ' and ' : 'you have '}joined team Aqua.`); - break; - } - case 'rocket' : { - msg.member.addRole(msg.guild.roles.find('name', 'Rocket')); - msg.reply(`Alright, ${team ? 'you have left team ' + team + ' and ' : 'you have '}joined team Rocket.`); - break; - } - case 'magma' : { - msg.member.addRole(msg.guild.roles.find('name', 'Magma')); - msg.reply(`Alright, ${team ? 'you have left team ' + team + ' and ' : 'you have '}joined team Magma.`); - break; - } - default : { - msg.reply('You have to pick, aqua, rocket, or magma.'); - break; - } + case 'aqua': { + msg.member.addRole(msg.guild.roles.find('name', 'Aqua')); + msg.reply(`Alright, ${team ? 'you have left team ' + team + ' and ' : 'you have '}joined team Aqua.`); + break; + } + case 'rocket' : { + msg.member.addRole(msg.guild.roles.find('name', 'Rocket')); + msg.reply(`Alright, ${team ? 'you have left team ' + team + ' and ' : 'you have '}joined team Rocket.`); + break; + } + case 'magma' : { + msg.member.addRole(msg.guild.roles.find('name', 'Magma')); + msg.reply(`Alright, ${team ? 'you have left team ' + team + ' and ' : 'you have '}joined team Magma.`); + break; + } + default : { + msg.reply('You have to pick, aqua, rocket, or magma.'); + break; + } } }; |
