diff options
| author | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-13 21:07:04 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-13 21:07:04 +0200 |
| commit | f56e10514e0fe74599fcdaea553f59cfe0cf5f70 (patch) | |
| tree | 5ce8d9a8f4101a9f2816af46ac1aa5b3bc049f7b /main.go | |
| parent | 8b174209e193746216e711423cb26cebd0786581 (diff) | |
feat(command): /config for days before reduction
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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( |
