refactor(config): handle xp reduce

This commit is contained in:
Anhgelus Morhtuuzh 2025-08-06 15:35:10 +02:00
parent 51a412b32d
commit 0b93ea5daa
Signed by: anhgelus
GPG key ID: 617773CACE89052C
4 changed files with 64 additions and 46 deletions

View file

@ -129,7 +129,7 @@ func main() {
}
// interaction: /config
// xp related
// xp role related
bot.HandleMessageComponent(config.HandleModifyXpRole, config.ModifyXpRole)
bot.HandleMessageComponent(config.HandleXpRoleAddEdit, config.XpRoleAdd)
bot.HandleMessageComponent(config.HandleXpRoleAddEdit, config.XpRoleEdit)
@ -142,6 +142,9 @@ func main() {
// channel related
bot.HandleMessageComponent(config.HandleModifyFallbackChannel, config.ModifyFallbackChannel)
bot.HandleMessageComponent(config.HandleFallbackChannelSet, config.FallbackChannelSet)
// reduce related
bot.HandleMessageComponent(config.HandleModifyPeriodicReduce, config.ModifyTimeReduce)
bot.HandleModal(config.HandleTimeReduceSet, config.TimeReduceSet)
// xp handlers
bot.AddHandler(OnMessage)