1
0
Fork 0

Added event when people add bot forgot to add it before whoops

Commando
Loic Bersier 6 years ago
parent 5a29f8e96f
commit e6f9453b47

@ -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 });
};

@ -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…
Cancel
Save