Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to see Info after unban #125

Closed
DarthGandalf opened this issue Sep 18, 2024 · 6 comments
Closed

Make it possible to see Info after unban #125

DarthGandalf opened this issue Sep 18, 2024 · 6 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@DarthGandalf
Copy link
Contributor

Выделение_613

Because one of admins in the admin channel unbanned the person already, without clicking the Info button first, now it's impossible to debug why it triggered on this message.

Please either make the Info button not disappear, or just automatically show the info while unbanning

@umputun
Copy link
Owner

umputun commented Sep 19, 2024

Currently, you can see all the info you are looking for in the log.

Generally, I agree with the suggestion, and it would be nice if someone could prepare a PR addressing it.

@umputun umputun added help wanted Extra attention is needed good first issue Good for newcomers labels Sep 19, 2024
@dsent
Copy link

dsent commented Oct 13, 2024

Currently, you can see all the info you are looking for in the log.

Where is the detection info logged, though? There's no such info in stdout, nor in the tg-spam.log. Is this DEBUG=true level info?

@umputun
Copy link
Owner

umputun commented Oct 14, 2024

it is in the logs (container's log in this case). This iw what it looks like:

2024/10/13 17:30:07.725 [DEBUG] {events/listener.go:300 events.(*TelegramListener).procEvents} ban initiated for {Text:this is spam: "батя" (1023634640) Send:true BanInterval:9600h0m0s User:{ID:1023634640 Username:bahtyaa DisplayName:батя} ChannelID:0 ReplyTo:568375 DeleteReplyTo:true CheckResults:[{Name:stopword Spam:false Details:not found} {Name:emoji Spam:true Details:72/2} {Name:images Spam:false Details:no images without text} {Name:cas Spam:false Details:record not found} {Name:multi-lingual Spam:false Details:0/5} {Name:similarity Spam:false Details:0.08/0.50} {Name:classifier Spam:true Details:probability of spam: 92.97%}]}

@umputun
Copy link
Owner

umputun commented Oct 24, 2024

on master, thx to @olitez

@DarthGandalf you can try it with the :master image

@DarthGandalf
Copy link
Contributor Author

Works, thanks!

I suspect that it won't work if the spam message itself happens to have 'original detection results' as substring though (haven't tested that)

@olitez
Copy link
Contributor

olitez commented Oct 25, 2024

@DarthGandalf yes but I don't think it make sense to fix (why spammer gonna use it?)

@umputun umputun closed this as completed Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants