Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

infinity-api

ahmed-sabry59Apache-2.01.1.8

Main wrapper for infinity bot list to post stats, get info, intract with out webhooks!

tropical, bot, list, top.gg, node-fetch, wrapper, bot, list, discord, bots, discord, boats, infinty, bot, list, infinity, api, top, api, gblapi.js, easy-fetch, discord, bot, list, botlist, arcane-center, api, post, stats, bot, lists

readme

Our infinity bot list main wrapper!

Join Infinity Bot List

You can post 3 requests every 5 minutes (Rate Limit)

Post Requests

const IBL = require("infinity-api"); // We import our api
const stats = new IBL("Your BotID", "Your Bot Api token") // Add botID string, And Authorization token from the bot page

    setInterval(() => { 
        stats.postStats("Guilds count" /*, "Shards Count" */) // Post guilds count and shards count
    }, 3e5)

Get Requests

const IBL = require("infinity-api"); // We import our api
const stats = new IBL("Your BotID", "Your Bot Api token") // Add botID string, And Authorization token from the bot page

// Get Bot Stats
    stats.getStats((data) => {
        console.log(data)
    })

// Get User Stats
    stats.getUser("userID", (data) => {
        console.log(data)
    })

Webhooks

const infinity = require("infinity-api") // We import our api
const IBL = new infinity("botID", "botAuth", {webPort: 3001, webPath: "/IBLhook", webAuth: "Auth you placed in custom webhooks"}); // We fill requirements

IBL.webhook.on("votes", (vote) => {
    console.log(vote) // Receive vote content
})
IBL.webhook.on("ready", console.log) // Once the webserver start u will get message
IBL.webhook.on("destroyed", console.log) // Any errors will be generated from him