Skip to content

Add /training request: ask for a tool on the training form - #27

Closed
adman234 wants to merge 1 commit into
mainfrom
claude/training-tool-requests
Closed

adman234 wants to merge 1 commit into
mainfrom
claude/training-tool-requests

Conversation

@adman234

@adman234 adman234 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

What

A Discord command for zone bosses: /training request tool:<name> zone:<zone> fee:<5|10|15|20> [note].

The Worker passes the request to the Dolibarr onboarding module (action=toolrequest, added in the companion onboarding PR on branch claude/zone-budgets-tool-requests). Dolibarr checks it, emails whoever edits the Givebutter form, and queues it on its Training tools page.

  • The reply is private (ephemeral) and covers each case: requested, already requested, already on the form, bad zone or fee, Dolibarr not connected.
  • It works whether or not FUND_DB is bound.
  • scripts/register-fund-commands.mjs now registers /training alongside /fund, with zones and fees as fixed choices. Re-run it after merge.

Testing

  • Signed Discord interactions through handleDiscord against the onboarding sandbox Dolibarr: a request, a duplicate, a bad zone, and Dolibarr not configured.
  • The earlier /fund + Givebutter sync harness still passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YBKW8YMyuoh6Up9NogFDbD


Generated by Claude Code

A Discord command for zone bosses. The Worker passes the tool, zone and fee to
the Dolibarr onboarding module (action=toolrequest), which checks them, emails
the form editor and queues the request. Registered alongside /fund by
scripts/register-fund-commands.mjs, with the zones and fees as choices.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YBKW8YMyuoh6Up9NogFDbD
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
website 9a541d5 Commit Preview URL

Branch Preview URL
Oct 08 2026, 06:29 PM

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.

2 participants