npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

edbl.js

v4.5.9

Published

unofficial api wrapper helps you to get Bots/Users informations from ElectroBotList

Downloads

18

Readme

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;