Confused on how to utilize Discord Bot List webhooks? Look no further!
This is an easy to self-host handler for using webhooks!
- Node.js (pls just use latest)
- A server to run this on
- A webhook on discord bot list set up and with an auth key
- Navigate to where you want the code to be and run
git clone https://github.com/melmsie/dbl-webhook-handler.git - Now run
cd dbl-webhook-handlerand runnpm install - Edit the config.json to contain your auth key
- Make sure your webhook is pointed at your server. The url should serverIP/dblwebhook unless you have a domain pointed at the server. In which case it will be https://yourdomain.com/dblwebhook
- Change the function at the bottom of server.js to do what you want it to for rewarding users for upvoting.
- Run it with
node server.jsand you're done! (I advise keeping it running with something like pm2)