Add status updates and removal notifs

This commit is contained in:
Skylar Grant 2023-06-10 15:09:45 -04:00
parent 87c7a8e9ec
commit d117a69893

View File

@ -125,9 +125,17 @@ client.on('messageCreate', async message => {
});
client.on('guildCreate', async guild => {
const serverCount = client.guilds.cache.size;
client.user.setActivity({ name: `${serverCount} trees grow.`, type: ActivityType.Watching });
await statusChannel.send(`I've been added to a new guild: ${guild.name} (${guild.id})`);
});
client.on('guildDelete', async guild => {
const serverCount = client.guilds.cache.size;
client.user.setActivity({ name: `${serverCount} trees grow.`, type: ActivityType.Watching });
await statusChannel.send(`I've been removed from a guild: ${guild.name} (${guild.id})`);
});
async function checkRateLimits(hi) {
const axios = require('axios');