feat(stats): push guild count to bot status

This commit is contained in:
spiral
2022-12-06 10:45:38 +00:00
parent d1d0faaa7e
commit c547901e00
4 changed files with 35 additions and 2 deletions

View File

@@ -11,7 +11,13 @@ import (
"github.com/getsentry/sentry-go"
)
var set_guild_count = false
func main() {
if _, ok := os.LookupEnv("SET_GUILD_COUNT"); ok {
set_guild_count = true
}
err := sentry.Init(sentry.ClientOptions{
Dsn: os.Getenv("SENTRY_DSN"),
})