Added event when people add bot forgot to add it before whoops
This commit is contained in:
parent
5a29f8e96f
commit
e6f9453b47
2 changed files with 24 additions and 0 deletions
12
events/guildCreate.js
Normal file
12
events/guildCreate.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
module.exports = (client) => {
|
||||
console.log(`${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}`);
|
||||
const channel = client.channels.get(statsChannel);
|
||||
const addEmbed = {
|
||||
color: 0x008000,
|
||||
title: 'Someone added the bot! :D YAY',
|
||||
description: `${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}`,
|
||||
timestamp: new Date(),
|
||||
};
|
||||
|
||||
channel.send({ embed: addEmbed });
|
||||
};
|
12
events/guildDelete.js
Normal file
12
events/guildDelete.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
module.exports = (client) => {
|
||||
console.log(`***BOT KICKED***\n${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}\n***BOT KICKED***`);
|
||||
const channel = client.channels.get(statsChannel);
|
||||
const kickEmbed = {
|
||||
color: 0xFF0000,
|
||||
title: 'Someone removed the bot :(',
|
||||
description: `${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}`,
|
||||
timestamp: new Date(),
|
||||
};
|
||||
|
||||
channel.send({ embed: kickEmbed });
|
||||
};
|
Loading…
Reference in a new issue