aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-08-21 18:51:54 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-08-21 18:51:54 +0200
commit236f57fb1525400bd4b7b6304b9d04f44cd021cc (patch)
treee9f407ea0b98ce692bfb5f7a593d7ac6ce9783db /main.go
parentadf1e6008e5166232c24b1de09640f9c9fb6ffba (diff)
feat(command): days option for stats
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index e2856eb..93b75d7 100644
--- a/main.go
+++ b/main.go
@@ -85,6 +85,16 @@ func main() {
SetHandler(commands.Credits)
statsCmd := cmd.New("stats", "Affiche des stats :D").
+ AddOption(cmd.NewOption(
+ discordgo.ApplicationCommandOptionInteger,
+ "days",
+ "Nombre de jours à afficher dans le graphique",
+ )).
+ AddOption(cmd.NewOption(
+ discordgo.ApplicationCommandOptionUser,
+ "user",
+ "Utilisateur à inspecter",
+ )).
SetHandler(commands.Stats)
innovations, err := gokord.LoadInnovationFromJson(updatesData)