InfinityDocsv6.0.0HomeHome
GitHubGitHub (opens in a new tab)DiscordDiscord (opens in a new tab)
  • Contributors
    • Authoring
  • Documentation
    • API
      • About
      • Bots
      • Users
      • Votes
      • Announcements
    • Libraries
      • Java
      • JavaScript
      • Python
  • Resources
    • API Usage
    • Downtime
    • Ratelimits
    • References
    • Webhooks
    • Weekends
    • Widgets
  • Home
  • Website
    • v3.0.0
    • v4.0.0
  • Documentation
    • v3.0.0
    • v4.0.0
  • Contributors
    • Authoring
  • Documentation
    • API
      • About
      • Bots
      • Users
      • Votes
      • Announcements
    • Libraries
      • Java
      • JavaScript
        • Infinity-Bots API
        • Auto-Poster
        • Webhooks
        • Voting Module
      • Python
  • Resources
    • API Usage
    • Downtime
    • Ratelimits
    • References
    • Webhooks
    • Weekends
    • Widgets

On This Page

  • Infinity-Bots API
  • Installation
  • Links
  • postBotStats()
  • Auto-Poster
  • Installation
  • Links
  • Supported Librarys
  • Example
  • Example Error
  • Webhooks
  • Installation
  • Links
  • Getting Started
  • Response Paramaters
  • Example (Express)
  • Example (Fastify)
  • Voting Module
  • Installation
  • Links
  • checkUserVoted()
  • Response Paramaters
  • Example Usage
Question? Give us feedback → (opens in a new tab)Edit this page on GitHub
Documentation
Libraries
JavaScript

Infinity-Bots API

npm installnfo

This is our Official NPM Module used for Posting and Getting Stats.


Installation

npm i [email protected]


Links

  • Support: Join our Discord (opens in a new tab)

postBotStats()

const poster = new InfinityBots('AUTH_TOKEN', client.user.id);
 
await poster.postBotStats({
  servers: client.guilds.cache.size,
  shards: '0',
}).catch((err) => {
  return console.log(`Error occured while posting stats: ${err.stack}`);
});
 
console.log('Posted stats to Infinity Bot List!');
JavaPython

© 2023 Infinity Development LLC.