Together-Java / TJ-Bot

TJ-Bot is a Discord Bot used on the Together Java server. It is maintained by the community, anyone can contribute.
https://togetherjava.org
GNU General Public License v3.0
101 stars 90 forks source link

Automatically convert forbidden file types to txt and send them as an attachment(Only for ones which are not in binary format) #1103

Open JavaProgswing opened 6 months ago

JavaProgswing commented 6 months ago

Is your feature request related to a problem? Please describe. Whenever I send a forbidden file-type(for example vbs) to a channel, it flags my message. Sends a dm to me, informing me about the same and deleting my message. But If I convert the same to txt and send it, it does work.

Describe the solution you'd like I would like the bot to delete my message, but also convert my file to txt and send it as an attachment. If from the list of forbidden extensions the bot has hardcoded, the extension is among the ones which are readable/not generally in binary.

Additional context Hey there, you posted a message containing a blacklisted file attachment: ...vbs We had to delete your message for security reasons.

andrew-09 commented 1 month ago

Has anyone started on this already? If not may I work on it?