Skip to content

Commit ac33faf

Browse files
authored
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.
1 parent 24cedd5 commit ac33faf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ func main() {
5959
log.Printf("saving kills failed: %v", err)
6060
}
6161
}
62-
} else if fromChatEvent(&update, "commonlispbr") && !member.IsBot {
63-
welcomeMessage(bot, &update, member)
6462
}
6563

6664
// Exit automatically from groups when I'm joining it

0 commit comments

Comments
 (0)