Cron Worker to fetch guild count and send it to https://discord.bots.gg API.
nix-shell
(skip if you have node installed from another source, then usenpx wrangler
for below)npm install
wrangler secret put DBOTS_TOKEN
wrangler secret put TOKENS
- this should map bot IDs to Discord tokens and be of the form{"12345": "tokenhere"}
.wrangler kv:namespace create KV
and update thewrangler.toml
entry with the new ID.- Optional:
wrangler secret put HTTPSECRET
- this is used to authenticate manual invocations over HTTP, useful for testing in production. wrangler deploy