Add status updates and removal notifs
This commit is contained in:
parent
87c7a8e9ec
commit
d117a69893
8
main.js
8
main.js
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user