This commit is contained in:
Alex Brow 2020-03-23 09:51:23 -04:00
parent e2ac047feb
commit 794d590767
No known key found for this signature in database
GPG Key ID: F48926893F475C25
1 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,14 @@ client.on("guildCreate", guild => {
client.user.setActivity(`${client.users.cache.size} of you horrible people`,{ type: 'LISTENING' });
});
client.on('guildMemberAdd', member => {
console.log(`New member joined: ${member.name} (id: ${member.id}).`);
client.user.setActivity(`${client.users.cache.size} of you horrible people`,{ type: 'LISTENING' });
});
client.on('guildMemberRemove', member => {
console.log(`New member joined: ${member.name} (id: ${member.id}).`);
client.user.setActivity(`${client.users.cache.size} of you horrible people`,{ type: 'LISTENING' });
});
client.on("guildDelete", guild => {
// this event triggers when the bot is removed from a guild.
console.log(`I have been removed from: ${guild.name} (id: ${guild.id})`);