Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@superchupu/topgg-autoposter
Advanced tools
i needed jpbberry/topgg-autoposter#6 right now so i made a fork to use it while waiting for it be merged
i guess ill deprecate this when it happens
Easy AutoPosting via the top.gg sdk
It's really really simple! All you gotta do is:
const { AutoPoster } = require('@superchupu/topgg-autoposter')
const poster = AutoPoster('topggtoken', client) // your discord.js or eris client
// optional
poster.on('posted', (stats) => { // ran when succesfully posted
console.log(`Posted stats to Top.gg | ${stats.serverCount} servers`)
})
You can also do poster.on('error', (err) => { ... }) and this will stop errors from being logged and left for you to handle
And that's it!
It will begin to post your server count, and shard count every 30 minutes.
This even work on individual Discord.JS shards that are process separated.
If you would like to do specific clients, DJSPoster
& ErisPoster
& DJSSharderPoster
& RosePoster
are all exported classes!
If you use Discord.JS' traditional ShardingManager
sharder, you can also append the AutoPoster to the sharding manager like so:
const sharder = new Discord.ShardingManager(...)
const poster = AutoPoster('topggtoken', sharder)
sharder.spawn() // rest of your stuff!
This will run broadcastEval's and automatically fetch your statistics!
const master = new Master(...)
const poster = AutoPoster('topggtoken', master)
And it will run everything through comms.getStats() function
FAQs
Auto-Poster for Top.gg
The npm package @superchupu/topgg-autoposter receives a total of 0 weekly downloads. As such, @superchupu/topgg-autoposter popularity was classified as not popular.
We found that @superchupu/topgg-autoposter 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.