Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 2.49 KB

README.md

File metadata and controls

30 lines (18 loc) · 2.49 KB

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?

  • Discord Webhook URL (Under channel settings):

    image

  • Ko-fi Token (Under advanced):

    Screenshot 2023-01-01 204241

Help

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