discordboats.xyz

1.0.5 • Public • Published

discordboats.xyz API

A simple library for interacting with the discordboats.zyx API.

Getting Started

Simply install by navigating to your project directory then running npm i discordboats.xyz.

Example

const Client = require('discordboats.xyz');
const client = new Client('Bot ID', 'User Token');

client.getBot('435161743183052801').then(bot => {
    console.log(bot)
}).catch((e) => {
    console.error(e)
})

client.getCurrent().then(bot => {
    console.log(bot)
}).catch((e) => {
    console.error(e)
})

client.getUser('423220263161692161').then(bot => {
    console.log(bot)
}).catch((e) => {
    console.error(e)
}) 

client.updateCount(1680).then(() => {
    console.log('Successfully updated server count.')
}).catch((e) => {
    console.error(e)
})

License

Apache 2.0 License

Readme

Keywords

none

Package Sidebar

Install

npm i discordboats.xyz

Weekly Downloads

1

Version

1.0.5

License

none

Unpacked Size

15.5 kB

Total Files

5

Last publish

Collaborators

  • ahuman