danparizher / Pax-Academia

General purpose utility bot for the Homework Help Discord server
MIT License
13 stars 5 forks source link

feat: Detect & Destroy media spam #280

Closed GabeMillikan closed 8 months ago

GabeMillikan commented 9 months ago

Monitors specified channels to watch for large quantities of media. If a threshold is crossed, all recent media can be deleted*.

* No media is being deleted yet, we're still testing to determine what the appropriate threshold should be. This PR adds a command to display the current "media percent" from various history lengths. We'll enable the deletion once we're happy with a threshold.

image

GabeMillikan commented 9 months ago

Thank you for your work on this! Just a few suggestions, let me know what you think.

👍Applied those suggestions

GabeMillikan commented 8 months ago

@ceSchueler

Remove the functionality of deleting the messages async def delete_media_messages ... and I'll approve it in woseek's stead as then it would really just be the monitoring of the percentage. For the actual deletion part (added with another PR at a later date), I would leave the approval to woseek himself then.

Sure 👍, I've removed that function from this PR entirely. (see: 8c1c433)