probot.io

1.0.2 • Public • Published

ProBot.io Package

Current Available Features

  • User Details
  • Guilds Details
  • Transaction Logs
  • Logout
  • Get All available Profile backgrounds on the store
  • Get All available Badges on the store
  • Buy A new Profile backgrounds by ID
  • Buy A new Badge By ID
  • Tax Calculator
  • Get the top 100 by XP
  • Get the top 100 by credits

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

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

Package Sidebar

Install

npm i probot.io

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

13.8 kB

Total Files

6

Last publish

Collaborators

  • 3mo_steve