botsfordiscord.com
v1.0.1
Published
A simple library for interacting with the botsfordiscord.com API.
Downloads
7
Readme
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)
})