aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-08-21 15:41:40 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-08-21 15:41:40 +0200
commite00f05d7c636f9a1b7a10930402cfeb9331f6631 (patch)
treea84053c6f902f9769ac7a88c17d208a9fcd1ab0b /main.go
parentd98e5704f9a3d4fd98800bbc4bd48e1b0a442d3f (diff)
feat(command): fetch stats
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index 9c0a3b7..e2856eb 100644
--- a/main.go
+++ b/main.go
@@ -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