An example on how to use webhooks to get votes for discordbots.org Official Docs
This uses better-Sqlite3 to show how YOU can make a webhook with your bot and save it to a database. This also uses dblapi.js for the webhook lib
To start, go to your bot's edit page on discordbots.org and scroll to the bottom where you'll find a section on webhooks. Point the domain to yourhostname/dblwebhook (which is the default). Then set the password to whatever you want. You will need it for later.
- process.env.BOT_TOKEN bot/Bot.js
- process.env.APITOKEN with your DBL Api Token found here. web/WebServer.js
- process.env.PORT with the webhook port web/WebServer.js
- process.env.PASS with the password specified in the webhook section of your bot's edit page web/WebServer.js