Skip to content

Add fair coinflip slash command - #60

Merged
jackm43 merged 1 commit into
mainfrom
codex/coinflip
Oct 3, 2026
Merged

jackm43 merged 1 commit into
mainfrom
codex/coinflip

Conversation

@jackm43

@jackm43 jackm43 commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Adds /coinflip to the shared Discord command registry. Each invocation replies with heads or tails using a fresh cryptographically secure random bit, giving both outcomes equal probability.

Validation:

  • pnpm run check passed.
  • pnpm test passed: 123 tests, including both outcomes and a fresh random draw per invocation.
  • pnpm run test:runtime passed, including coinflip dispatch with the real random source in the local Python Worker.
  • Cloudflare deployment dry run passed.

Deployed ragbot-worker to production (version f591a233-1df6-4405-88db-0b7eaff25aba) at the user's request. Registered all eight current guild commands and verified Discord readback includes /coinflip.

Production smoke checks passed: unsigned interactions and unauthenticated gateway health return bare 401 responses; authenticated gateway health returns 200. The gateway reported disconnected and not operator-stopped at verification time. No manual restart was performed. A live slash-command invocation requires a Discord user session; coinflip execution was verified in the local Worker runtime.

@jackm43
jackm43 merged commit 0bc6f61 into main Oct 3, 2026
1 check passed
@jackm43
jackm43 deleted the codex/coinflip branch October 3, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant