From 1d4994286d9d787724110821077cbba993b4f94a Mon Sep 17 00:00:00 2001 From: ascpial Date: Sun, 21 Sep 2025 00:00:23 +0200 Subject: fix(config): remove useless code --- main.go | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 328b9b5..3b7495a 100644 --- a/main.go +++ b/main.go @@ -235,19 +235,6 @@ func main() { } // interaction: /config - bot.HandleMessageComponent(func(s *discordgo.Session, i *discordgo.InteractionCreate, data *interaction.MessageComponentData, resp *cmd.ResponseBuilder) { - if len(data.Values) != 1 { - bot.LogError(errors.New("invalid data values"), "handle config modify, values: %#v", data.Values) - return - } - switch data.Values[0] { - case config.ModifyDisChannel: - config.HandleModifyDisChannel(s, i, data, resp) - default: - bot.LogError(errors.New("unknown value"), "detecting value %s", data.Values[0]) - return - } - }, commands.ConfigModify) bot.HandleMessageComponent(commands.ConfigMessageComponent, commands.OpenConfig) // xp role related bot.HandleMessageComponent(config.HandleXpRole, config.ModifyXpRole) -- cgit v1.2.3