1.0.2 • Published 3 years ago
probot.io v1.0.2
ProBot.io Package
Current Available Features
Installation
npm install probot.io
Usage
const { ProClient, tax } = require("probot.io");
const pro = new ProClient("0IxW0YE5Z7cg8Hw", "probot");
// Or Login with your Discord Token
const pro = new ProClient("Your Discord Account Token", "discord");
pro.on("ready", () => { // When the Client is ready.
console.log(`Logged in as [ ${pro.user.tag} ]`);
console.log(`Amount of guilds: ${pro.guilds.length}`);
console.log(`The amount of all Transactions: ${pro.transactions.reduce((a, b) => a + b.transactions.length, 0)}`);
});
Claim The Daily
Get all available badges or profile backgrounds
client.getProfileBackgrounds().then(profiles => {
console.log(profiles)
}).catch(e => {
console.error(e);
}); //Get all available profile backgrounds
client.getBadges().then(badges => {
console.log(badges);
}).catch(e => {
cosnole.error(e);
}); //get All available badges
Buy a badge or profile background
client.buyProfilebackground(Number, Boolean).then(msg => {
console.log(msg);
}).catch(e => {
console.error(e);
}); //Buy a profile background By ID.
client.buyBadge(Number, Boolean).then(msg => {
console.log(msg);
}).catch(e => {
console.error(e);
}); //Buy a badge By ID.
Tax Calculator
const { tax } = require("probot.io");
tax.calculate(1000);
/*
{
amount: 1000,
tax: 950
}
*/
Get Top 100 by credits & xp
client.getTop100XP().then(users => {
console.log(users);
}); //TOP 100 By XP
client.getTopBillionaires().then(users => {
console.log(users);
}); //Top 100 by credits