New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

abl.js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abl.js

new abl wrapper made in js

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Astro Bot List API Wrapper v2

Currently, you can post and get your bot stats.

const Botlists = require('abl.js');

const abl = new Botlists('1234');

/* get your bot stats */

abl.stats().then((r) => console.log(r.message)).catch((r) => console.log(r));

/* post your bot stats */

abl.postStats(10, 2).then((r) => console.log(r)).catch((r) => console.log(r));


/*
    First param is the servers
    second param is the shards
*/

Using async/await
    const Botlists = require('abl.js');
    
    const abl = new Botlists('api key');
    (async () => {
      try {
        const botStats = await abl.stats();
        console.log(botStats);
      } catch (e) {
        console.log(e);
      }
    
      try {
        const postStats = await abl.postStats(10, 2);
        console.log(postStats, 'here');
      } catch (e) {
        console.log(e);
      }
    })();
   

Keywords

botlists

FAQs

Package last updated on 22 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts