{"repo":"cnharrison/dice-witch","free":true,"listed":false,"github":"https://github.com/cnharrison/dice-witch","clone":"git clone https://github.com/cnharrison/dice-witch.git","description":"Visual TRPG dice roller bot for Discord","language":"TypeScript","stars":25,"topics":["nodejs","dice","dnd","rpg","discord","discord-bot","discord-js","discordjs","discordjs-bot","trpg"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Dice Witch Dice Witch is a Discord dice roller that aims to simulate the experience of rolling Dice IRL. It literally shows you the dice. Architecture Dice Witch runs on six Cloudflare Workers. Durable Objects coordinate roll delivery and Gateway shards. D1 stores application data. Signed HTTP interactions handle commands. The Gateway handles presence, sessions, shards, and guild lifecycle events. RollWork Durable Objects make Discord delivery idempotent. The Data Worker is the only Worker with direct access to D1. Everything else talks to it through service bindings. The Web/API Worker serves the React application, OAuth and API routes, and the /interactions endpoint. Roll pipeline Repository - cloudflare/ : Workers, Durable Objects, shared packages, D1 migrations, tests, and Wrangler examples - frontend/ : React and Vite application Requirements - Node.js 24.13 - npm 11.6 - A Cloudflare account with Wrangler authenticated - A Discord application and bot Local setup Install dependencies and copy the example configuration files: The copied Wrangler files and .env.local are ignored by Git. Replace every placeholder. If you rename a Worker, update every service binding that points to it. You will need: - Discord application ID and public key - Discord OAuth client ID, client secret, and callback URL - Public frontend origin and web app URL - Invite, support, and audit log channel URLs or IDs - D1 database name and ID - Gateway mode, hostname, and partition capacities Initialize","default_branch":null,"files":null,"tree":[],"storefront":"/r/cnharrison","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cnharrison/dice-witch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}