5.6.0 • Published 6 years ago
thebotcentre v5.6.0
Getting Started
Simply Run npm install thebotcentre
.
Example
const TBC = require('thebotcentre');
/*
* Bot ID
* User Token
* Debug Mode
*/
const TBCClient = new TBC('Bot ID', 'User Token', true);
TBCClient.updateServerCount(250)
console.log("Server Count Updated to 250 guilds.");
TBCClient.getUserInfo('423220263161692161').then(bot => {
var decoded_data = bot.toString('utf8')
let info = JSON.parse(decoded_data);
console.log("Username: "+ info.response.username),
console.log("ID: "+ info.response.id),
console.log("Rank: "+ info.response.rank)
console.log("Account Status: "+ info.response.account_status)
})
TBCClient.getBotInfo('435161743183052801').then(bot => {
var decoded_data = bot.toString('utf8')
let info = JSON.parse(decoded_data);
console.log("Bot Username: "+ info.response.username),
console.log("Bot ID: "+ info.response.id),
console.log("Bot Libary: "+ info.response.libary)
TBCClient.getCurrentBot().then(bot => {
var decoded_data = bot.toString('utf8')
let info = JSON.parse(decoded_data);
console.log("Current Bot Username: "+ info.response.username),
console.log("Current Bot ID: "+ info.response.id),
console.log("Current Bot Libary: "+ info.response.libary)
})
License - Apache 2.0 License
5.6.0
6 years ago