how to find in how many servers your discord bot is in js code example
Example: how to see in how many servers your discord bot is d.js
You need to use client.setActivity() and then use the client.guilds.cache.size value.
For example:
client.setActivity(`Currently in ${client.guilds.cache.size} servers`);