Skip to content

Serverless Express app running on Netlify Functions to send Ko-fi donation to Discord

License

Notifications You must be signed in to change notification settings

raidensakura/kofi-discord-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Serverless Express app running on Netlify Functions to send Ko-fi donation to Discord

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published