Skip to content
Sign upLog in
Bot status
Profile icon

So I am currently scripting a discord bot using node.js but I cannot figure out how to make a bot status similar to this
I would really appreciate if anyone can tell me how to do this. Thanks!

You are viewing a single comment. View All
Profile icon

you can use this piece of code here.

client.on("ready", () => { // This event will run if the bot starts, and logs in, successfully. console.log(`Bot has started, with ${client.users.cache.size} users, in ${client.channels.cache.size} channels of ${client.guilds.cache.size} guilds.`); // Example of changing the bot's playing game to something useful. `client.user` is what the // docs refer to as the "ClientUser". client.user.setActivity(`Serving ${client.guilds.cache.size} servers`); });

In the last line you can put whatever status you want.