testlistss
v2.0.4
Published
A discord.boats API wrapper
Downloads
8
Readme
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)
})