Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DexterTheDev/infinity-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

Infinty Api

Maintainer Dexter#1000

Join Infinity Bot List

Our infinity bot list main wrapper!

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

 // 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")
const IBL = new infinity("botID", "botAuth", {webPort: 3001, webPath: "/IBLhook", webAuth: "Auth you placed in custom webhooks"});
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

About

Quick npm package wrapper for infinitybotlist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /