2.0.4 • Published 5 years ago

testlistss v2.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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)
}) 
2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago