A simple NodeJS server to accept requests from Ko-Fi Webhook service and translate them into a Discord embed!
- You need NodeJS v12.16.2! Get it here
- You need to install the dependecies, to do that open a terminal inside the installation folder and run
npm install
- After the installation has complemeted, configure the server by copying the config.template.json, naming it to
config.json
and editing the values inside it. - To start the server, run
node server.js
!
Check out pm2 or forever to have your server running 24/7!
You can optionally use CloudFlare or simply your server IP address, for instance http://123.456.789:SERVERPORTHERE/post as the webhook link and it will work like a charm!
Check out Glitch.com if you would like your server to be hosted for free rather than paying for VPS or Dedicated server!
Go to https://ko-fi.com/manage/webhooks and enter your server IP/domain and add /post
to the end. For example, http://example.com/post
, hit Update and you are ready to roll! As long as your server is running, you will receive notifications automatically to the webhook you have provided in the configuration file! Enjoy :)
Feel free to submit issues, ideas and others as well as contribute to the project!