discord-vr

A package designed for Discord Bot developers willing to add vote rewards function to their bot!

Usage no npm install needed!

<script type="module">
  import discordVr from 'https://cdn.skypack.dev/discord-vr';
</script>

README

Discord-VR

Discord-VR is a package written in JavaScript willing to help in the development of Discord Bots!

Example Usage

const { Client } = require('discord.js');
const { DVRClient } = require('discord-vr');
const client = new Client();
const dvrclient = new DVRClient({
    client,
    userID: "1234567890",
    rewardAmount: 150,
    port: 3000
});

client.login('discord bot token');

Now, in order for this to work, you need to know your server's URl, most of the times it is http://ip:port, but if you're using Repl.it, or Glitch, you only need the URL which will be displayed right after you declare Discord-VR's client. Then, go to any of the bot lists down below and set the URl to /webhook/votes, after that check the table down below to see the authentication depending on the bot list.

Bot List Auth
infinitybotlist.com 1234567890.ibl
top.gg 1234567890.top.gg
discordbotlist.com 1234567890.dbl.com
voidbots.net 1234567890.vb
botsfordiscord.com 1234567890.bfd
bots.discordlabs.org 1234567890.dl

This package requires quick.db@^7.0.0-b22 in order to work properly, the package includes this by itself, please do not install any other version or else the package will error!

For further help visit the Documentation or join the Support Server

Credits