feat(command): /config for days before reduction
This commit is contained in:
parent
8b174209e1
commit
f56e10514e
3 changed files with 71 additions and 4 deletions
10
main.go
10
main.go
|
@ -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().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue