const DBL = require('dblapi.js')
const dbl = new DBL(mytoken', { webhookPort: 5000, webhookAuth: 'MYPASSWORD' })
dbl.webhook.on('ready', hook => {
console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbl.webhook.on('vote', vote => {
console.log(`User with ID ${vote.user} just voted!`);
});
on site
URL
http://ip adress:5000/dblwebhook
Authorization
You can use this value to verify the requests are coming from us.
MYPASSWORD
Whatever i do (testing or voting) it doesnt log