1.1.3 • Published 5 years ago

tbl.js v1.1.3

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Informations

npm

tbl.js is a unofficial api wrapper helps you to get Bots/Users informations from ToxicBotList;

Setup

npm install tbl.js
var TBL = require ('tbl.js');

Examples

Get info of some bot;

TBL.getBot ('ID').then (async (BotInfo) => {
  console.log (BotInfo); // returns BotClass;
});

Get info of some user;

TBL.getUser ('id').then (async (UserInfo) => {
  console.log (UserInfo); // returns BotClass;
});

post Users/Servers count;

client.on ('ready', () => {
  require ('tbl.js').postStatus ({
    token: 'your tbl token',
    usersCount: client.users.size,
    serversCount: client.guilds.size
  });
});

Classes

Bot

contains:

id: String () // returns botid;
tags: Array () // returns tags array of bot;
username: String () // returns botname;
avatarURL: String () // returns bot avatar url;
lib: String () // returns library of the bot;
prefix: String () // returns prefix of the bot;
owner: UserClass () // returns `User` class;
votes: String () // returns votes count of the bot;
verifited: Boolean () // returns bot verification status;
shortdesc: String () // returns short description of the bot;
longdesc: String () // returns long description of the bot;

User

contains:

id: String () // returns user id;
username: String () // returns user name;
bio: String () // returns user bio/description;
website: String () || Boolean () // returns website of the user;
roles: Array () // returns user roles;
bots: Array () // returns bot's ids in array;
1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago