1.1.6 • Published 4 years ago

edbl v1.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Informations* Hi

A simple nodejs module helps you to get info/votes of bots from Electro Discord Bot List

Setup

first, define module variable

var edbl = require ('edbl.js');

Get info of some bot;

edbl.getBot ('BotID').then (async (BotInfo) => {
  console.log (BotInfo);
  // returns botInfo Object
});

Get info of some user;

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

Check if user has voted to the bot

edbl.hasVoted ('BotID', 'UserID').then (async (BotInfo) => {
  console.log (BotInfo);
  // returns hasVoted boolean (true, false);
});

post Users/Servers count;

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

Classes

Bot contains:

id: String // Bot userid
username: String // Bot username
avatar: String // Bot avatarUrl
lib: String // Library of bot
prefix: String // Prefix of bot
shortdesc: String // Short description of bot in TBL site
longdesc: String // Long description of bot in TBL site (contains markdown & html)
support: String or Boolean // Support invite url , if haven't returns false
owner: Object // Owner object contains (id, name)
invite: String // Invite link of the bot (perms 8)
verified: Boolean // returns true if bot is verified and false if not
widget: String // widget api image url of bot in TBL
votesCount: Number // returns the size of votes
hasVoted: Object // Object of all votes in lifetime with timestamp of it

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.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago