Using top.gg to promote your bot? This snippet will allow you to update the server count every hour without having to do anything! You will need to connect a token in the Environment Variables the token can be created here https://top.gg/bot/your-bot-id/webhooks once you change 'your-bot-id' with your bot id - The bot must be on top.gg to use this snippet!
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let result = (await lib.discord.guilds['@0.1.0'].list()).length;
let token = process.env.token;
const Topgg = require(`@top-gg/sdk`);
const api = new Topgg.Api(`${token}`);
console.log(result);
await api.postStats({
serverCount: result,
});