From f56e10514e0fe74599fcdaea553f59cfe0cf5f70 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 13 May 2025 21:07:04 +0200 Subject: feat(command): /config for days before reduction --- main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 2035cb5..4b4062e 100644 --- a/main.go +++ b/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(). -- cgit v1.2.3