feat(command): user option for stats

This commit is contained in:
Anhgelus Morhtuuzh 2025-08-21 19:00:54 +02:00
parent 236f57fb15
commit 26643cd271
Signed by: anhgelus
GPG key ID: CAD341EFA92DDDE5
2 changed files with 74 additions and 11 deletions

View file

@ -4,7 +4,6 @@ import (
"time"
"github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/logger"
)
type Copaing struct {
@ -35,15 +34,7 @@ const (
func GetCopaing(discordID string, guildID string) *Copaing {
c := Copaing{DiscordID: discordID, GuildID: guildID}
if err := c.Load(); err != nil {
logger.Alert(
"user/member.go - Loading user",
err.Error(),
"discord_id",
discordID,
"guild_id",
guildID,
)
return nil
panic(err)
}
return &c
}