[econ] auto award discord role tokens

This commit is contained in:
Devin Zuczek
2026-09-26 11:52:03 -04:00
parent 3037043a00
commit 65365d8fc3
7 changed files with 567 additions and 6 deletions
+12
View File
@@ -213,3 +213,15 @@ RECFLARE_DOMAIN=rec.example.com
#
# The binding has to resolve for `www` to deploy, so create it with a placeholder even if
# you don't want the sweep — it then does nothing. It never touches hasPlus.
# OPTIONAL: a token gift for Discord supporters (`econ` cron). Maps Discord ROLE ids to the
# RecCenterTokens a holder is handed in a gift box EVERY TIME THE CRON FIRES, as
# `<roleId>=<tokens>` pairs. How often is the schedule's call: `triggers.crons` in
# apps/econ/wrangler.jsonc ships weekly (Monday 05:00 UTC); change that line for daily. ONE
# box per member per run — a member holding several mapped roles is paid the HIGHEST amount
# among them, not the sum, so the map reads as tiers. Same rules as ROLE_IDS above:
# snowflakes, not names; commas, no spaces. Roles are read from the snapshot the benefits
# claim and the daily sweep above keep, so it reaches only players who have claimed on the
# website, and is only as fresh as that sweep (with a bot, the morning's; without one, the
# day they claimed). Unset — or parsing to no roles — leaves the cron a logged no-op.
# RECFLARE_DISCORD_ROLE_TOKENS=1077000000000000001=2500,1077000000000000002=10000