From 236f57fb1525400bd4b7b6304b9d04f44cd021cc Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 21 Aug 2025 18:51:54 +0200 Subject: feat(command): days option for stats --- main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'main.go') 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) -- cgit v1.2.3