Skip to content

Add Wasteland Discord bot for community notifications#2

Open
pae23 wants to merge 2 commits intogastownhall:mainfrom
pae23:feature/discord-wasteland-notifications
Open

Add Wasteland Discord bot for community notifications#2
pae23 wants to merge 2 commits intogastownhall:mainfrom
pae23:feature/discord-wasteland-notifications

Conversation

@pae23
Copy link

@pae23 pae23 commented Mar 4, 2026

Summary

  • Adds a Discord bot (bot/wasteland-discord/) for Wasteland wanted board notifications
  • The bot receives HTTP POSTs from the /wasteland skill and posts embeds to a Discord channel
  • Verifies senders are registered rigs via DoltHub API before posting
  • Includes /wasteland-status and /wasteland-rigs slash commands

How it works

  1. An admin installs the bot on the community Discord server (one-time setup)
  2. When a rig runs /wasteland post, /wasteland claim, or /wasteland done, the skill POSTs to the bot's /notify endpoint
  3. The bot checks the rig handle exists in the rigs table on DoltHub
  4. If valid, posts a color-coded embed to the configured channel

No per-user webhook setup needed — the bot is the single entry point.

Companion PR

Test plan

  • npm install && DISCORD_BOT_TOKEN=... DISCORD_CHANNEL_ID=... npm start
  • curl -X POST localhost:3141/notify -H 'Content-Type: application/json' -d '{"handle":"pae23","event":"posted","title":"Test","id":"w-test"}'
  • Verify embed appears in Discord channel
  • Test with unregistered handle — should get 403
  • Test /wasteland-status slash command in Discord

🤖 Generated with Claude Code

pae23 and others added 2 commits March 4, 2026 21:58
Adds the /wasteland skill for Claude Code with built-in Discord webhook
notifications on claim, post, and done commands. Includes setup-discord
command for first-time configuration. Users who decline are not asked again.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Node.js bot (discord.js + express) that:
- Exposes /notify HTTP endpoint for wasteland skill to POST to
- Verifies sender is a registered rig via DoltHub API
- Posts color-coded embeds to a configured Discord channel
- Provides /wasteland-status and /wasteland-rigs slash commands
- Fails open on DoltHub API errors (never blocks notifications)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pae23
Copy link
Author

pae23 commented Mar 4, 2026

Note: this bot code might be happier in its own repo (e.g. gastownhall/wasteland-discord-bot) rather than living inside community. That would give it its own CI, deploy pipeline, and issue tracker.

Happy to move it if the maintainer prefers — just let us know.

@pae23
Copy link
Author

pae23 commented Mar 4, 2026

Related: gastownhall/marketplace#1 (SKILL.md update that uses this bot — blocked until bot is deployed)

@csells
Copy link
Contributor

csells commented Mar 7, 2026

we're working on something here. stay tuned.

@Xexr
Copy link

Xexr commented Mar 7, 2026

What happens when users register their rig, and starts firing /wasteland claim/done but before their submissions are merged?

At that point, their rigs won't be seen as 'registered' yet.

Does the bot ignore those notifications until they are?

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.

3 participants