aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-23 20:17:54 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-23 20:17:54 -0400
commit48b56fe90c4006d706dbc467d11280835b798a57 (patch)
treea5a1d9ad4440c74a58d2e914ca26f8d6b26d1659
parent33b98ee70d29016a9257fe5a9e85709775c353e5 (diff)
downloadPokeBot-48b56fe90c4006d706dbc467d11280835b798a57.tar.gz
PokeBot-48b56fe90c4006d706dbc467d11280835b798a57.tar.bz2
PokeBot-48b56fe90c4006d706dbc467d11280835b798a57.zip
Automation
-rw-r--r--events/guildMemberAdd.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/events/guildMemberAdd.js b/events/guildMemberAdd.js
index a035422..63adf39 100644
--- a/events/guildMemberAdd.js
+++ b/events/guildMemberAdd.js
@@ -44,6 +44,7 @@ module.exports = async (bot, member) => {
bot.channels.get('426829685289123850').setName('Member Count: ' + (member.guild.memberCount - botCount));
bot.channels.get('426829838238613504').setName('Bot Count: ' + botCount);
bot.channels.get('417100669980508160').send(`Welcome to the server **${member.user.tag}**! Make sure to read the rules! We now have ${member.guild.memberCount} members.`);
+ bot.channels.get('417088992329334794').send('Welcome to the server <@' + member.id + '>. Be sure to join a team: `p:join <aqua, magma, rocket>`');
const role = member.guild.roles.find('name', 'Trainers');
member.addRole(role);
};