How rival works
What happens between someone typing a command and rival replying — and why it's fast.
The short version
rival is one bot process connected to Discord's gateway. Every message, join, voice change and audit log entry arrives as an event. A command router turns messages and slash commands into the same command call, and each module (antinuke, automod, levels, music, VoiceMaster…) listens only for the events it cares about.
One command, two front doors
Every command is written once. The prefix parser (,ban @user spam) and the slash menu (/ban user: reason:) both resolve to the same handler, with the same arguments, cooldowns and permission checks. That's why the help text, the slash picker and this website always agree.
,voicemaster default name {user}
↳ voicemaster → default → name args: ["{user}"]
/voicemaster defaultname template:{user}
↳ the same command, same argsLong command families are grouped so they fit Discord's limit of 100 slash commands, but the short prefix forms keep working: ,bal still runs economy balance, ,hardban still runs ban hard.
Where your settings live
- Settings, cases, levels, tickets and stats are stored in Postgres, so nothing is lost when rival restarts.
- If the cache ever goes away, rival falls back to memory and keeps working — just a touch slower.
How the dashboard talks to rival
When you log in at rival.cx, the website signs every request it forwards to the bot with a secret only the two of them share. The bot checks that signature, then checks with Discord that you really have Manage Server in that server before it shows or changes anything.
Safety by default
- rival can never act on anyone whose top role is equal to or higher than its own, or on the server owner.
- Antinuke reacts to audit log events in real time — usually in under a second.
- Destructive setup commands ask for confirmation first.
Browse every command with its real slash name on the Commands page.
Live gateway, database and cache response times on the Status page.
Every release, with how to use each new feature.
Ask anything in the support server.
Answered questions
Still stuck? Ask on the support forum. Answers to common questions are added here.