Skip to content

Devs Commands

Complete guide to developer and owner commands

The devs module provides bot management and diagnostic commands for the bot’s internal team. The team has three tiers with descending privilege levels. Commands are protected by guard conditions that check the user’s team membership before execution.

TierRoleHow to AssignCapabilities
1OwnerSet via OWNER_ID environment variable at deploymentFull control: manage team roster, all diagnostic commands, all team commands
2Sudo / DevAssigned by owner via /addsudo or /adddevDiagnostic commands: bot stats, chat info, chat management
3Any Team MemberAutomatically includes owner + all sudo + all dev usersView team roster only

Each command is mapped to its access level with the exact guard condition from the source code:

CommandDescriptionAccess LevelGuard Condition
/addsudoGrant sudo permissions to a userOwner Onlyuser.Id != config.AppConfig.OwnerId
/adddevGrant developer permissions to a userOwner Onlyuser.Id != config.AppConfig.OwnerId
/remsudoRevoke sudo permissions from a userOwner Onlyuser.Id != config.AppConfig.OwnerId
/remdevRevoke developer permissions from a userOwner Onlyuser.Id != config.AppConfig.OwnerId
/statsDisplay bot statistics and system infoOwner or Devuser.Id != OwnerId && !memStatus.Dev
/chatinfoDisplay detailed information about a chatOwner or Devuser.Id != OwnerId && !memStatus.Dev
/chatlistGenerate and send a list of all active chatsOwner or Devuser.Id != OwnerId && !memStatus.Dev
/leavechatForce the bot to leave a specified chatOwner or Devuser.Id != OwnerId && !memStatus.Dev
/teamusersList all team members (owner, sudo, dev)Any Team MemberUser must be in teamint64Slice

These are help-menu module names, not command aliases.

This module has no help-menu aliases. It is not listed in the help menu.

None of the developer commands are disableable. They cannot be disabled via the /disable command because they are not registered with AddCmdToDisableable().

/stats
/chatinfo -100123456789
/addsudo <reply to user or user_id>
/adddev <reply to user or user_id>
/teamusers
/leavechat -100123456789