botoract
v1.0.5
Published
Botoract is a npm module for interacting with different discord botlist public APIs.
Downloads
27
Maintainers
Readme
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.