JSPM

probot.io

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q12292F
  • License ISC

OwO I like Dramex.

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

  • 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