diff --git a/events/guildCreate.js b/events/guildCreate.js new file mode 100644 index 0000000..d0c5f1e --- /dev/null +++ b/events/guildCreate.js @@ -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 }); +}; \ No newline at end of file diff --git a/events/guildDelete.js b/events/guildDelete.js new file mode 100644 index 0000000..254419f --- /dev/null +++ b/events/guildDelete.js @@ -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 }); +}; \ No newline at end of file