Socket
Book a DemoInstallSign in
Socket

botoract

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botoract

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

1.0.5
latest
Source
npmnpm
Version published
Weekly downloads
8
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Botoract

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

Botlist (Support)

  • Discord Boats
  • Discords
  • More coming soon...

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.

Keywords

discord

FAQs

Package last updated on 28 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.