A Cloudflare Worker that forwards Ko-fi donations to a Discord channel via a webhook.
- Verifies incoming requests from Ko-fi using a verification token.
- Sends donation details to a Discord channel using a webhook.
- Includes a button in the Discord message to view the donation on Ko-fi.

- Cloudflare Workers
- Wrangler CLI
- A Discord webhook URL.
- A Ko-fi verification token (found in the Advanced Drop Down of your Ko-fi page).
You can deploy this worker directly to Cloudflare Workers using the button below:
- Clone the repository:
git clone https://github.com/quacksire/kofi-to-discord
cd kofi-to-discord
- Install dependencies:
npm install
- Configure environment variables:
Copy
.dev.vars.example
to.dev.vars
:
cp .dev.vars.example .dev.vars
Replace the placeholder values in .dev.vars
with your actual WEBHOOK
and KOFISECRET
.
4Deploy the worker:
wrangler publish