aboutsummaryrefslogtreecommitdiff
path: root/commands/Pokemon/join.js
diff options
context:
space:
mode:
authorTrey <trey6979@gmail.com>2019-10-24 13:38:44 +0000
committerTrey <trey6979@gmail.com>2019-10-24 13:38:44 +0000
commit478d86650e02b91ebe4d1bb387d7ef3e7796a019 (patch)
treee69c82ba882a0a812b4ac0fc5d9a0e11f0471b74 /commands/Pokemon/join.js
parentb09e7677a0ab138075dab56e1b61f551fcbc1b94 (diff)
downloadPokeBot-478d86650e02b91ebe4d1bb387d7ef3e7796a019.tar.gz
PokeBot-478d86650e02b91ebe4d1bb387d7ef3e7796a019.tar.bz2
PokeBot-478d86650e02b91ebe4d1bb387d7ef3e7796a019.zip
Added new whitelist message, teams command is longer be case specific
Diffstat (limited to 'commands/Pokemon/join.js')
-rw-r--r--commands/Pokemon/join.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/commands/Pokemon/join.js b/commands/Pokemon/join.js
index 2187eef..59bc0c7 100644
--- a/commands/Pokemon/join.js
+++ b/commands/Pokemon/join.js
@@ -9,25 +9,25 @@
exports.run = async (bot, msg, args) => {
const isWhitelist = await bot.plugins.whitelist.isWhitelist(msg.guild.id);
- if (!isWhitelist) return msg.reply ('This is a Whiltelisted command. Only whitelisted servers can use this command. Sorry!');
+ if (!isWhitelist) return msg.reply ('This command is still in testing. Only whitelisted servers can use this command. Sorry!');
if (args.length < 1) return msg.reply('Please choose a team to join');
- const team = findTeam(msg, args[0]);
+ const team = findTeam(msg, args[0].toUpperCase());
switch (args[0])
{
- case 'skull': {
+ case 'SKULL': {
msg.member.addRole(msg.guild.roles.find('name', 'Skull'));
msg.reply(`Alright, ${team ? 'you have left team ' + team + ' and ' : 'you have '}joined team Skull.`);
break;
}
- case 'flare' : {
+ case 'FLARE' : {
msg.member.addRole(msg.guild.roles.find('name', 'Flare'));
msg.reply(`Alright, ${team ? 'you have left team ' + team + ' and ' : 'you have '}joined team Flare.`);
break;
}
default : {
- msg.reply('You have to pick skull, or flare.');
+ msg.reply('You have to pick a team (skull, flare.)');
break;
}
}