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 86 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 5 months ago

JavaProgswing commented 5 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.

Andrew1031 commented 2 weeks ago

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