1.0.0 • Published 2 years ago

roadsterlist-api v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

How to use this lib?

Please, note that to perform requests such as posting stats, you need you private token, which CAN NOT BE REGENERATED. Token can be found in edit page of your bot.

Examples

const { Bot } = require('roadsterlist-api'); //Import our lib
const rlistClient = new Bot('secrettoken', 'mydiscordbotid') //Initialize our class
(async() => {
    await rlistClient.postStats({guilds: client.guilds.cache.size, users: client.users.cache.size}) //Example for DiscordJS
})(); //Call it

//Tada! Stats are pushed to server
const { Bot } = require('roadsterlist-api'); //Import our lib
const rlistClient = new Bot('secrettoken', 'mydiscordbotid') //Initialize our class
(async() => {
    await rlistClient.userVoted('911542985727025173', '854342480019587133')
})(); //Call it

//Tada! You checked it!