1.0.5 • Published 7 years ago

discordboats.xyz v1.0.5

Weekly downloads
7
License
-
Repository
github
Last release
7 years ago

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