feat(command): days option for stats
This commit is contained in:
parent
adf1e6008e
commit
236f57fb15
2 changed files with 45 additions and 19 deletions
10
main.go
10
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue