discord.js command to see in how many discord servers your bot is in 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`);