TJ-Bot icon indicating copy to clipboard operation
TJ-Bot copied to clipboard

Forbid posting exe files

Open Zabuzard opened this issue 3 years ago • 4 comments

The bot should react to any message with attached media and check if it ends on a blacklisted file extension (such as .exe).

Such posts should then be deleted and the bot should inform the user that the file is not allowed for sharing.

For a good UX, we should DM the original message to the user after deleting it, so that it is not fully lost and they can copy-adjust-paste-again instead of having to fully type it out from memory.

Also, the bot should warn moderations about this and give them a copy of the message. This could be done using the ModAuditLogHelper or whatever the helper class was called.

Zabuzard avatar Aug 09 '22 07:08 Zabuzard

Hello Could you assign this to me ? 😄

Mom0aut avatar Aug 20 '22 01:08 Mom0aut

Sure thing, enjoy :)

Zabuzard avatar Aug 20 '22 18:08 Zabuzard

Is it rly useful to send the mods an suspicious exe attachment? I would inform the mods that the user sent an Media with blacklistedFileExtension, if you are oke with this?

Mom0aut avatar Aug 27 '22 14:08 Mom0aut

Definitely. I never intended receiving any actual attachments. It is enough to forward the message itself, without the media.

Both should receive a copy of the text-message (without media):

  • the user via DM, so that their message is not lost to them, in case they want to rewrite it
  • the mods, so that they 1. know what happened, 2. have a record of the message in case they need to do further actions (such as banning), 3. can identify false-positive alerts and adjust the bot

Zabuzard avatar Aug 27 '22 14:08 Zabuzard