Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erisa/dbots-guild-count
Cloudflare Worker cron to sync Discord bot guild count to discord.bots.gg API
https://github.com/erisa/dbots-guild-count
cloudflare-workers discord nix-shell workers
Last synced: 2 months ago
JSON representation
Cloudflare Worker cron to sync Discord bot guild count to discord.bots.gg API
- Host: GitHub
- URL: https://github.com/erisa/dbots-guild-count
- Owner: Erisa
- Created: 2023-10-28T19:12:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-04T17:05:19.000Z (9 months ago)
- Last Synced: 2024-11-02T14:35:29.621Z (2 months ago)
- Topics: cloudflare-workers, discord, nix-shell, workers
- Language: TypeScript
- Homepage:
- Size: 47.9 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DBots Guild Count
Cron Worker to fetch guild count and send it to https://discord.bots.gg API.
## Setup
1. `nix-shell` (skip if you have node installed from another source, then use `npx wrangler` for below)
2. `npm install`
3. `wrangler secret put DBOTS_TOKEN`
4. `wrangler secret put TOKENS` - this should map bot IDs to Discord tokens and be of the form `{"12345": "tokenhere"}`.
5. `wrangler kv:namespace create KV` and update the `wrangler.toml` entry with the new ID.
6. Optional: `wrangler secret put HTTPSECRET` - this is used to authenticate manual invocations over HTTP, useful for testing in production.
7. `wrangler deploy`