1.0.5 • Published 2 years ago

botoract v1.0.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Botoract

Botoract is a npm module for interacting with different discord botlist public APIs.

Botlist (Support)

Usage

Discord Boats

const { Boat } = require("botoract");

const boat = new Boat({
    token: "API Token",
    botId: "BotId"
});

// Post your bot's server count
boat.post.serverCount(69, "Bot ID - Not required here if you passed on the constructor");

// Fetch a Bot
boat.bots.fetch("Bot ID").then((bot) => {
    //...
});

// Fetch a User
boat.users.fetch("User Id").then((bot) => {
    //...
});

// Check if the user voted your bot
boat.bots.isVoted("User ID", "Bot ID - Not required here if you passed on the constructor").then((voted) => {
    if (voted) {
        //...
    };
});

Discords

const { Discords } = require("botoract");

const discords = new Discords({
    apiKey: "API Key"
});

// Fetch Bot
discords.bots.fetch("Bot ID").then((bot) => {
    
    // Post Stats
    bot.postServerStats(47, "API Key");

    // Fetch Bot Votes
    bot.fetchVotes("API Key").then((vote) => {
        //...
    });
});


// Fetch User
discords.users.fetch("User ID").then((user) => {

    // Fetch User Bots
    user.fetchBots().then((bots) => {
        bots.forEach((bot) => {
            // ...
        });
    });
});

Support

Have any issue? or want us to add API support for your desire botlist? Consider joining our Discord Server.

License

Package is licensed under Apache-2.0.

1.0.5

2 years ago

1.0.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago