roadsterlist-api

1.0.0 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i roadsterlist-api

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

4 kB

Total Files

4

Last publish

Collaborators

  • xmuffionex