abl-wrapper
v1.1.7
Published
Astro bot list js api wrapper
Downloads
18
Readme
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)
});
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)
})();