1.0.6 • Published 4 years ago

dblista-wrapper v1.0.6

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

dblista-wrapper

Module for https://dblista.pl api - Discord Bots and Servers list

Example:

const Discord = require("discord.js");
let client = new Discord.Client();

// DBLista API
let token = "dblista-api-key";
let clientID = client.user.id;
let disableLogs = false // true
let DBListaAPI = require("dblista-wrapper");
let DBLista = new DBListaAPI({token, clientID, disableLogs});

client.on("ready", async () => {
    let botOnDBLista = await DBLista.botInfo("676816022241673226");
    console.log(botOnDBLista);

    let serverOnDBLista = await DBLista.serverInfo("663668731095941150");
    console.log(serverOnDBLista);

    setInterval(async function(){
        try {
            let api = await DBLista.updateStats(client.users.size, client.guilds.size);
            console.log(api);
        } catch (error) { console.log(error); }
    }, 10*60*1000);
    
});

client.login("");
1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago