feat(command): fetch stats

This commit is contained in:
Anhgelus Morhtuuzh 2025-08-21 15:41:40 +02:00
parent d98e5704f9
commit e00f05d7c6
Signed by: anhgelus
GPG key ID: CAD341EFA92DDDE5
5 changed files with 72 additions and 4 deletions

View file

@ -84,6 +84,9 @@ func main() {
creditsCmd := cmd.New("credits", "Crédits").
SetHandler(commands.Credits)
statsCmd := cmd.New("stats", "Affiche des stats :D").
SetHandler(commands.Stats)
innovations, err := gokord.LoadInnovationFromJson(updatesData)
if err != nil {
panic(err)
@ -116,6 +119,7 @@ func main() {
resetCmd,
resetUserCmd,
creditsCmd,
statsCmd,
},
AfterInit: func(dg *discordgo.Session) {
d := 24 * time.Hour