voting-system icon indicating copy to clipboard operation
voting-system copied to clipboard

A voting system to handle your bot vote's from top.gg

vote-system

A voting system to handle your bot vote's from top.gg with MONGO DB.

How to Use?

  • Fork this repo (https://github.com/peterhanania/voting-system/)
  • Run npm install To install the required modules
  • Head to the config.json File and change as such:
{
      mongo -> Your MONGO Database URL
      dbl_secret --> Top.gg Authorization (Found here https://top.gg/bot/YOUR-BOT-ID/webhooks
      bot_token --> Your bot's token (found here https://discord.com/developers/applications)
      bot_name --> Your discord bot's name
      bot_logo --> Bot logo's URL
      port --> Website's Port (default: 5000)
}

Webhooks:

Let'say the webhook you copied is: https://discord.com/api/webhooks/827092347325644200/EJWOSlDFNRiux_XBG4Fbj0wJyNTM4riPDyO0Qe6zAwr1SSQZpfhv3Bzbfa9AQkDqlImF

{
      webhook_id --> 827092347325644200
      webhook_url --> EJWOSlDFNRiux_XBG4Fbj0wJyNTM4riPDyO0Qe6zAwr1SSQZpfhv3Bzbfa9AQkDqlImF 
}

Make sure the dbl_secret Is the same authorization in top.gg or It will not work.
Make sure the Webhook URL on top.gg is the website-name/dblwebhook or It will not work.


Any questions? DM me on Discord.