aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-05-13 21:07:04 +0200
committerAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-05-13 21:07:04 +0200
commitf56e10514e0fe74599fcdaea553f59cfe0cf5f70 (patch)
tree5ce8d9a8f4101a9f2816af46ac1aa5b3bc049f7b /main.go
parent8b174209e193746216e711423cb26cebd0786581 (diff)
feat(command): /config for days before reduction
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index 2035cb5..4b4062e 100644
--- a/main.go
+++ b/main.go
@@ -100,6 +100,16 @@ func main() {
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().
AddOption(gokord.NewOption(