Serverless Express app running on Netlify functions to send Ko-fi notification to Discord.
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.
Fill your environmental variables
Save & Deploy
Access your function at: https://<your_domain>.netlify.app/.netlify/functions/kofi
Discord Webhook URL (Under channel settings):
Ko-fi Token (Under advanced):
Feel free to reach out to me on Discord or Create an issue