Riscord Back to chat

Developer docs

Build a bot that belongs in your community.

API v1 SDK 0.5.0

Show live activity on a bot profile

Show a player count or service status on your bot’s profile.

Examples use the bot client from Your first bot.

Publish a status

Use your bot token and SDK 0.5.0 or later. The text can come from your own game server monitor. It appears to people who can see the bot’s profile and does not change the bot’s username.

JavaScript
await bot.setActivity({
  details: 'VMP / QP Community',
  state: `${players} players online`,
});

Refresh or clear

Refresh the status about once a minute. It expires after two minutes without a refresh. Call clearActivity() or clear_activity() when you stop publishing. Never put player names, credentials or other private data in activity text.