raidensakura / kofi-discord-notification

Serverless Express app running on Netlify Functions to send Ko-fi donation to Discord
MIT License
9 stars 0 forks source link
api discord embed express-js javascript ko-fi netlify-functions nodejs webhook

kofi-discord-notification Netlify Status

Serverless Express app running on Netlify functions to send Ko-fi notification to Discord.

ko-fi

Why?

Ko-fi currently has Discord Integration which only does role assignment but not message notification on donation. I found a Node.js script to achieve this goal but unfortunately it needed a constantly running server environment, as well as your own domain to avoid exposing the server IP address. Hence, I modified it to make it run on Netlify Functions, and you also get a free Netlify subdomain.

You can also deploy this simple script on an already existing Netlify website if you have one, just remember to include the extra dependencies in your main package.json and update your env variables.

How?

  1. Click this button

    Deploy to Netlify

  2. Fill your environmental variables

    Screenshot 2023-01-01 200539

  3. Save & Deploy

  4. Access your function at: https://<your_domain>.netlify.app/.netlify/functions/kofi

    image

  5. Edit your Webhook URL on Ko-fi

  6. Test your webhook

    image

Where?

Help

Feel free to reach out to me on Discord or Create an issue