aboutsummaryrefslogtreecommitdiff
path: root/commands/Pokemon/join.js
diff options
context:
space:
mode:
authorTrey-Server <trey6979@gmail.com>2018-03-10 01:32:41 +0000
committerTrey-Server <trey6979@gmail.com>2018-03-10 01:32:41 +0000
commit897ec0b5b50ddeafd09602c7424c5e2aa377241f (patch)
tree8e870772ae6e9632e1c93402d38f3b75daeb5cee /commands/Pokemon/join.js
parent435dc9902a732c0cb3d3367359910670fc65f9f2 (diff)
parente214e6e6f17294acc88e80d57cd90a878e71c5e6 (diff)
downloadPokeBot-897ec0b5b50ddeafd09602c7424c5e2aa377241f.tar.gz
PokeBot-897ec0b5b50ddeafd09602c7424c5e2aa377241f.tar.bz2
PokeBot-897ec0b5b50ddeafd09602c7424c5e2aa377241f.zip
Merge branch 'master' of https://github.com/PokeWorld/PokeBot
Diffstat (limited to 'commands/Pokemon/join.js')
-rw-r--r--commands/Pokemon/join.js40
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;
+ }
}
};