From ac33faf42ab2735c4a2249b2b61a4036f5597584 Mon Sep 17 00:00:00 2001 From: Manoel Vilela Date: Tue, 1 Sep 2020 12:03:53 -0300 Subject: [PATCH] Disable welcomeMessage for non-banned join Now only when pass system is used the welcomeMessage is triggered. When the pass system is used it's important to ensure the read of rules, I think. The behavior to print the welcomeMessage after each non-banned user can be annoying because a lot of them are bots. join_captcha_bot will erase that messages, but the welcomeMessages from our bot will remains. That creates a lot of noises on the group. --- main.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.go b/main.go index 4884e0f..ac0295d 100644 --- a/main.go +++ b/main.go @@ -59,8 +59,6 @@ func main() { log.Printf("saving kills failed: %v", err) } } - } else if fromChatEvent(&update, "commonlispbr") && !member.IsBot { - welcomeMessage(bot, &update, member) } // Exit automatically from groups when I'm joining it