npm.io
1.1.7 • Published 5 years ago

abl-wrapper

Licence
MIT
Version
1.1.7
Deps
1
Size
4 kB
Vulns
25
Weekly
0

Astro Bot List Javascript wrapper

Send your guild count easily

https://botlists.com

const { abl } = require('abl-wrapper');
const { client } = require('discord.js');
const client = new Client({
    disableEveryone: true,
})

abl.count('token', client, (error, success) => {
    if(error) throw new Error(error);
    else console.log(success)
});

Getting Bots Stats

Using .then()

abl.stats('abl token')
    .then(d => console.log(d))
    .catch(e => console.log(e.response.data));

Using async/await

(async () => {
    const ablStats = await abl.stats('abl token');
    console.log(ablStats)
})();

Keywords