Files
bunny-bot/internal/moon/logOnlyMessage.go
eleksir 0c34b6e781 Global code ovehaul - remove CAS and other, add 15 minute greet check
- Remove CAS, as it no longer works for us
- Remove other checks
- Implement 15 minute greet timeout check
- Fix chat logos
- Ditch thirdparty logger, use stdlib log facility wrapper for logging
2026-10-20 12:20:16 +03:00

25 lines
886 B
Go

package moon
import (
"bunny-bot/internal/elog"
"github.com/NicoNex/echotron/v3"
)
// logOnlyMessage writes a message to the chat log and nothing else.
//
// It handles the messages the greeting detector must NOT count as answers: a photo with no
// caption, a sticker, a location, a leave, a title change. They are real events in the room
// and belong in the log — which is also what makes a later ban diagnosable, since a moderator
// can read what the member actually replied with — but a reply with no text is not an
// introduction, and recording it in GreetAnswers would let any attachment rescue a spammer
// from the ban.
//
// The dispatcher has already established that this is neither a join nor a text message; it
// is not re-checked here.
func logOnlyMessage(msg *echotron.Update) {
elog.LogMessage(msg.Message)
}
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */