Package Exports
- probot.io
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (probot.io) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ProBot.io Package
Current Available Features
Installation
npm install probot.ioUsage
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
Removed
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