Naval-Base/yuudachi

Modcommand to clear messages

almostSouji opened this issue · 5 comments

Moderation command to clean messages

  • Slash command from-to (also allow use of ms duration formats?) could also have toggles like ignoring ignored mod roles or similar, unsure yet
  • Message context command to clean up to that message
  • Some upper bounds (a few hours?) to not run into accidental channel nukes

Maybe use some filters like the anti-raid, like pattern, author(s), mentioned users/roles, zalgo/confusables, urls (domains), embeds

Maybe implement fuzzy hashing/that fancy leven as an option on the message context command to exclude similar messages

First iteration: #1083 (missing context command, requires a larger scale reactor of command handling to support context commands without requiring specific names as a hacky workaround)

Maybe integrate the resolveTimestamp function from the utils/timestamp.ts on the from-to to allow more data types

About fuzzy matching:

Look at this library: https://www.npmjs.com/package/fuse.js?activeTab=readme

Note
Will be resolved with the message context menu command in the linked PR, further possible extensions should be handled in standalone PRs or feature reuquests