mirror of
https://github.com/Alee14/AleeBot.git
synced 2025-01-23 11:41:51 -05:00
When someone joins it gives them the Member role
This commit is contained in:
parent
e5afab40d6
commit
928c368099
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ client.on('ready', () => {
|
|||
|
||||
client.on("guildMemberAdd", function(member) {
|
||||
member.guild.channels.find("name", "welcomes-and-byes").sendMessage(member.toString() + " has joined the server");
|
||||
member.addRole(member.guild.role.find("name", "Member"));
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue