REQ: add Carl-bot migration scope — welcome DM, Wanderer role, link reminder DM

This commit is contained in:
Claude
2026-04-15 11:14:51 +00:00
parent 0273059148
commit b329951719

View File

@@ -74,3 +74,46 @@ Add reaction role handling to Arbiter. The `#get-roles` channel has been rebuilt
- Log adds/removes to console for debugging
- Deploy pattern: backup → clone to /tmp → copy to /opt/arbiter-3.0 → restart arbiter-3
---
## Additional Scope — Carl-bot Migration
Take over these two Carl-bot behaviors so Carl-bot can be removed.
### 4. MODIFY `src/discord/events.js`
Register `guildMemberAdd` event:
- Assign Wanderer role (`1487267974367805545`) to new member
- Send welcome DM:
```
Hey {username}! Welcome to Firefrost Gaming!
You just landed as a Wanderer — the door is open, come explore!
Quick links:
• Check out #rules first
• Say hi in #introductions
• Head to #get-roles to pick your path and grab your server channels
Questions? We're here. Welcome to the family!
```
- Silent-fail if DMs are closed
### 5. MODIFY `src/services/discordRoleSync.js` (or stripe.js)
When a subscriber reaches Awakened tier or above (i.e. after successful Stripe checkout assigns their role), send them a DM:
```
Hey {username}! You're now part of the Firefrost family! 🎉
One quick step — head to #link-your-account and use the /link command to connect your Minecraft account so we can whitelist you on our servers.
See you in-game!
```
- This should fire from the Stripe checkout flow after role assignment
- Silent-fail if DMs are closed
### Notes
- `GuildMembers` intent is already enabled — `guildMemberAdd` will work
- Check where luckpermsSync fires post-checkout — link reminder DM should fire at the same point