Skip to content

Commit

Permalink
Disable welcomeMessage for non-banned join
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ryukinix committed Sep 1, 2020
1 parent 24cedd5 commit ac33faf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac33faf

Please sign in to comment.