This Cloudflare Worker is made to monitor a status page for incidents. If there is one, it will post into a Discord server (with optional publishing) and continously update the message with incident updates. This allows you to easily track incidents which may be impacting you right inside of Discord.
Want to see it in action?
We use this in the Cloudflare Discord, come check it out!
There are a few steps to the setup but it should hopefully be pretty straightforward:
- Clone the repo
- Edit
src/config.ts
- here you can set the status URL, name of the webhook, avatar and publish channel - Put your IDs in
wrangler.toml
- Add Discord webhook with
wrangler secret put DISCORD_WEBHOOK
4b. (optional) If you want publishing, you'll also need to add a Discord bot token withwrangler secret put DISCORD_TOKEN
- Run
npm run publish
:)