Skip to content
RANDSUMdiscord bot

RANDSUM discord bot

Roll from any Discord server

Slash commands for any notation and every supported game, with each step of the roll shown in the reply.

/roll notation:4d6L+2
/blades dice:3

The RANDSUM Discord Bot is a Discord application for rolling dice in chat. It runs as a Cloudflare Worker that answers Discord’s slash commands, and shows every step of each roll. Every command takes an optional hidden:true, which shows the result only to you. It has a command for every RANDSUM game except Salvage Union, which the official SURef bot handles.

Each reply breaks the roll down step by step, coloured by outcome.

The bot’s reply to /roll 10d20, totalling 100

The bot’s reply to /roll 2d12+1

Add the bot to any Discord server with one click:

No configuration is required after adding.

The core dice rolling command. Supports the full RANDSUM dice notation with detailed breakdowns showing individual die results, modifiers, and final totals.

Terminal window
/roll notation:4d6L+2
/roll notation:2d20H
/roll notation:3d8+5

Roll Blades in the Dark action rolls. Takes the number of dice in your pool and returns the outcome (critical, success, partial, or failure), color-coded by outcome.

Terminal window
/blades dice:3
/blades dice:2
/blades dice:0 # Zero dice: rolls 2d6 and keeps the lowest

Roll D&D 5th Edition dice (1d20 + modifier). Supports advantage and disadvantage, and an optional dc to show success or failure. Natural 20s display in gold and natural 1s in crimson, so they stand out at a glance.

Terminal window
/fifth modifier:5
/fifth modifier:3 rolling_with:Advantage
/fifth modifier:4 dc:15
/fifth rolling_with:Disadvantage
/fifth # Straight 1d20

Roll Daggerheart’s Hope and Fear dice. Supports modifiers, advantage and disadvantage, amplifying either die, and an optional difficulty that resolves the roll into success or failure.

Terminal window
/dh modifier:5 rolling_with:Advantage
/dh modifier:3 rolling_with:Disadvantage
/dh amplify_hope:true amplify_fear:false
/dh modifier:2 difficulty:14

Roll Fate Core: four Fate dice (4dF) plus a skill rating, read off the Fate ladder from Terrible to Legendary. Add an opposition to resolve the shifts into a Fate outcome.

Terminal window
/fate skill:3
/fate skill:2 opposition:3
/fate # Mediocre (+0) skill

Roll Root RPG moves. Rolls 2d6 plus an optional modifier and returns the outcome (Strong Hit, Weak Hit, or Miss). Name the stat the move uses, and roll with advantage or disadvantage to roll 3d6 and keep the best or worst two.

Terminal window
/root modifier:2 stat:Might
/root modifier:-1 rolling_with:Disadvantage
/root # No modifier

Salvage Union rolls have moved. This command points you to SURef, the official bot from salvageunion.io, which rolls every Salvage Union table and looks up any chassis, system, module, or piece of equipment.

Terminal window
/salvageunion

Roll Powered by the Apocalypse moves (2d6 + stat). Supports forward and ongoing bonuses, and advantage and disadvantage.

Terminal window
/pbta stat:2
/pbta stat:1 forward:1
/pbta stat:3 rolling_with:Advantage
/pbta stat:0 ongoing:1

Display a reference guide for RANDSUM dice notation. Shows all available modifiers, syntax, and examples.

Terminal window
/notation

Lists all available RANDSUM slash commands with descriptions.

Six games have their own slash command, each resolving the roll by that game’s rules:

Salvage Union is served by the SURef bot instead; /salvageunion points there. The @randsum/games/salvageunion package is still published and usable in your own code.

  • Detailed breakdowns: individual die results, modifiers and step-by-step calculations
  • Full notation support: every RANDSUM dice notation feature (drop, reroll, explode and the rest)
  • Game-specific commands: a dedicated command for each supported game
  • Color-coded results: results are visually distinct by outcome
  • Private rolls: hidden:true on any command shows the result only to you
  • Reroll button: roll the same thing again from the reply

If you prefer to run the bot yourself:

Terminal window
# From the monorepo root
cd apps/discord-bot
# Install dependencies
bun install
# Set up environment variables
cp .env.example .env
# Register the slash commands with Discord
bun run deploy-commands
# Run the Worker locally (wrangler dev)
bun run dev

For detailed setup instructions, see the Discord Bot source on GitHub.