@infinitybots/autoposter
v0.0.4
Published
API Wrapper to Automatically Post Stats to the Infinity Bot List API!
Readme
Infinity Auto Poster
The easy way to Post your Bots Server and Shard Count stats.
Note: This Module will post stats every 5 Minutes.
Links
- Support: Join our Discord
Supported Librarys
- Detritus
- Discord-Rose (Buggy and Untested)
- Discord.js
- Eris (Buggy and Untested)
Example
const { InfinityAutoPoster } = require('@infinitybots/autoposter')
const poster = InfinityAutoPoster('auth_token', client) // your discord.js or eris client
// Optional Logger
poster.on('posted', (stats) => {
console.log(`Posted stats to the Infinity Bot List API | ${stats.servers} servers`)
});Example Error
const { InfinityAutoPoster } = require('@infinitybots/autoposter')
const poster = InfinityAutoPoster('auth_token', client) // your discord.js or eris client
// Optional Logger
poster.on('error', (err) => {
console.log(err)
})