https://github.com/raidensakura/kofi-discord-notification
Serverless Express app running on Netlify Functions to send Ko-fi donation to Discord
https://github.com/raidensakura/kofi-discord-notification
api discord embed express-js javascript ko-fi netlify-functions nodejs webhook
Last synced: 10 months ago
JSON representation
Serverless Express app running on Netlify Functions to send Ko-fi donation to Discord
- Host: GitHub
- URL: https://github.com/raidensakura/kofi-discord-notification
- Owner: raidensakura
- License: mit
- Created: 2023-01-01T10:29:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-24T13:27:29.000Z (about 3 years ago)
- Last Synced: 2024-11-15T06:42:20.368Z (over 1 year ago)
- Topics: api, discord, embed, express-js, javascript, ko-fi, netlify-functions, nodejs, webhook
- Language: JavaScript
- Homepage:
- Size: 335 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kofi-discord-notification
Serverless Express app running on Netlify functions to send Ko-fi notification to Discord.
[](https://ko-fi.com/P5P6D65UW)
## Why?
Ko-fi currently has Discord Integration which only does role assignment but not message notification on donation. I found [a Node.js script](https://github.com/eramsorgr/kofi-discord-alerts) 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](https://functions.netlify.com/), 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
[](https://app.netlify.com/start/deploy?repository=https://github.com/raidensakura/kofi-discord-notification)
2. Fill your environmental variables

3. Save & Deploy
4. Access your function at: `https://.netlify.app/.netlify/functions/kofi`

5. [Edit your Webhook URL on Ko-fi](https://ko-fi.com/manage/webhooks)
6. [Test your webhook](https://ko-fi.com/manage/webhooks#postSingleDonationTestMessageBtn)

## Where?
- Discord Webhook URL (Under channel settings):

- [Ko-fi Token](https://ko-fi.com/manage/webhooks?src=sidemenu) (Under advanced):

## Help
Feel free to reach out to me on [Discord](https://dsc.gg/transience) or [Create an issue](https://github.com/raidensakura/kofi-discord-notification/issues/new)