feat(command): days option for stats

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

10
main.go
View file

@ -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)