Top-gg-Community / node-sdk

An official module for interacting with the Top.gg API
https://topgg.js.org/
133 stars 42 forks source link

no logs #17

Closed Robin-Sch closed 5 years ago

Robin-Sch commented 5 years ago

Whatever i do (testing or voting) it doesnt log


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
tonkku107 commented 5 years ago

Make sure you have the port 5000 forwarded and allowed through any firewalls so you can receive requests.

tonkku107 commented 5 years ago

Closing for inactivity