go get github.com/officialpiyush/dbbgo
- Build The Client for DiscordBestBots:
var id = "" // Your Bot's ID
var token = "" // The discordsbestbots.xyz token
c := dbbgo.DBBClient(token, id)
func (c *Client) PostStats(guilds int) error
- POST Bot's Stats to the API
- This function is only for Non Sharded Bots. Sharded Bots should use
PostShardedStats
func.
Example
err := c.PostStats(guild_count) // where guild_count is your bot's guild count. INT Parameter
func (c *Client) PostShardedStats(guilds int, shards []int) error
- POST Sharded Bot's Stats to the API
Example
err := c.PostShardedStats(guild_count, []int{21,43}) // where guild_count is your bot's guild count and 2nd param is . INT Parameter