Minimal modular Discord bot with:
events/clientReady.tsevents/interactionCreate.ts/helpslash command with usage overview/diceslash command with dice notation parsing
Create environment variables:
cp .env.example .envRequired:
DISCORD_BOT_TOKEN= your bot token
Install dependencies:
bun installRun:
bun run start
# or watch mode
bun run devSlash commands are registered globally on startup (can take a little time to appear).
Use /dice with optional notation:
d202d6+34d10-2d%(percentile die)
Supported format: XdY+Z
Limits: 1-100 dice, 2-1000 sides, modifier up to +/-100000.