feat(command): /config for days before reduction

This commit is contained in:
Anhgelus Morhtuuzh 2025-05-13 21:07:04 +02:00
parent 8b174209e1
commit f56e10514e
Signed by: anhgelus
GPG key ID: CAD341EFA92DDDE5
3 changed files with 71 additions and 4 deletions

10
main.go
View file

@ -99,6 +99,16 @@ func main() {
).IsRequired()).
SetHandler(commands.ConfigChannel),
).
AddSub(
gokord.NewCommand("period-before-reduce", "Temps avant la perte d'xp (affecte aussi le /top)").
HasOption().
AddOption(gokord.NewOption(
discordgo.ApplicationCommandOptionInteger,
"days",
"Nombre de jours avant la perte d'xp (doit être égal ou plus grand que 30)",
).IsRequired()).
SetHandler(commands.ConfigPeriodBeforeReduce),
).
AddSub(
gokord.NewCommand("fallback-channel", "Modifie le salon textuel par défaut").
HasOption().