
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
infinity-api
Advanced tools
Main wrapper for infinity bot list to post stats, get info, intract with out webhooks!
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
FAQs
Main wrapper for infinity bot list to post stats, get info, intract with out webhooks!
The npm package infinity-api receives a total of 13 weekly downloads. As such, infinity-api popularity was classified as not popular.
We found that infinity-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.