botoract
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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.

Package Sidebar

Install

npm i botoract

Weekly Downloads

8

Version

1.0.5

License

Apache-2.0

Unpacked Size

75.2 kB

Total Files

50

Last publish

Collaborators

  • colderry