New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

roadsterlist-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roadsterlist-api

Library to wrap around list.r0adster.live API

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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!

FAQs

Package last updated on 01 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts