- Make sure Node.js and node-gyp is installed in your system.
- Download this repository or clone:
git clone https://github.com/erdem85/topgg-listener/
- Install modules with NPM:
npm install
- Fill
.env
- Set your server url in
https://top.gg/bot/<YOUR_BOT_ID>/webhooks
(example:http://3.66.77.9/dblwebhook
orhttp://topgg.ritim.xyz/dblwebhook
) - Start the project
npm test
or if you installed pm2pm2 start index.js
- You can get your DISCORD_WEBHOOK_ID and DISCORD_WEBHOOK_TOKEN from text channel (example: https://i.imgur.com/IVmThOU.png)
- Create authorization from
https://top.gg/bot/<YOUR_BOT_ID>/webhooks
forTOPGG_WEBHOOK_PASS
- Get your top.gg api token from
https://top.gg/bot/<YOUR_BOT_ID>/webhooks
forTOPGG_API_TOKEN