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 wranglerfor below)npm installwrangler secret put DBOTS_TOKENwrangler secret put TOKENS- this should map bot IDs to Discord tokens and be of the form{"12345": "tokenhere"}.wrangler kv:namespace create KVand update thewrangler.tomlentry 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