1.0.1 • Published 6 years ago

botsfordiscord.com v1.0.1

Weekly downloads
9
License
-
Repository
github
Last release
6 years ago

botsfordiscord.com API

A simple library for interacting with the botsfordiscord.com API.

Getting Started

Simply install by navigating to your project directory then running npm i botsfordiscord.com.

Example

const Client = require('botsfordiscord.com');
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