testlistss

2.0.4 • Public • Published

NPM

Getting Started

Simply Run npm install boats.js@latest

Usage

Example of posting a bots servercount to the API

const BOATS = require("boats.js")
const Boats = new BOATS("API TOKEN")

Boats.postStast(SERVER_COUNT, BOT_ID).then(() => {
    console.log('Successfully updated server count.')
}).catch((err) => {
    console.error(err)
})

Example of getting bot info

const BOATS = require("boats.js")
const Boats = new BOATS("API TOKEN")

Boats.getBot('BOT_ID').then(bot => {
    console.log(bot)
}).catch((err) => {
    console.error(err)
})

Example of getting user info

const BOATS = require("boats.js")
const Boats = new BOATS("API TOKEN")

Boats.getUser('USER_ID').then(user => {
    console.log(user)
}).catch((err) => {
    console.error(err)
}) 

Readme

Keywords

Package Sidebar

Install

npm i testlistss

Homepage

boats.js.org

Weekly Downloads

2

Version

2.0.4

License

MIT

Unpacked Size

5.44 kB

Total Files

7

Last publish

Collaborators

  • oriappelbaum