From ef0ace07b5d91dcacafdf799d89478c574b9f9c7 Mon Sep 17 00:00:00 2001 From: Watn3y Date: Wed, 15 Mar 2023 16:35:20 +0100 Subject: [PATCH] no longer respon on french dm --- text/matcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text/matcher.go b/text/matcher.go index 0dd6f7a..fecfe04 100644 --- a/text/matcher.go +++ b/text/matcher.go @@ -30,7 +30,7 @@ func Matcher(update tgbotapi.Update, bot *tgbotapi.BotAPI) { //balonlyl var isBalonlyl bool = false for _, word := range config.BotConfig.Balonlyl.TriggerWords { - if strings.Contains(strings.ToLower(update.Message.Text), word) && (commonlogic.ContainsInt64(config.BotConfig.Balonlyl.EnabledChats, update.Message.Chat.ID) || update.Message.From.ID == update.Message.Chat.ID) { + if strings.Contains(strings.ToLower(update.Message.Text), word) && (commonlogic.ContainsInt64(config.BotConfig.Balonlyl.EnabledChats, update.Message.Chat.ID)) { isBalonlyl = true break }