From 30f110d8d49cd1174882c58916147f52e09dd51e Mon Sep 17 00:00:00 2001 From: ascpial Date: Sun, 21 Sep 2025 23:34:31 +0200 Subject: fix(config): forgot some things --- config/channel.go | 1 - config/guild.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/config/channel.go b/config/channel.go index 8b45382..723ec38 100644 --- a/config/channel.go +++ b/config/channel.go @@ -6,7 +6,6 @@ import ( "github.com/anhgelus/gokord/cmd" discordgo "github.com/nyttikord/gokord" - // "github.com/nyttikord/gokord/component" "github.com/nyttikord/gokord/interaction" ) diff --git a/config/guild.go b/config/guild.go index 8096096..9cdb7e4 100644 --- a/config/guild.go +++ b/config/guild.go @@ -34,10 +34,7 @@ func (cfg *GuildConfig) Save() error { func (cfg *GuildConfig) IsDisabled(s *discordgo.Session, channelID string) bool { ok := true - s.LogInfo("Configuration: %s", cfg.DisabledChannels) - s.LogInfo("Channel %s, ok %t", channelID, ok) for channelID != "" && ok { - s.LogInfo("Channel %s, ok %t", channelID, ok) ok = !strings.Contains(cfg.DisabledChannels, channelID) c, err := s.State.Channel(channelID) if err != nil { -- cgit v1.2.3