zaanposni / discord-masz

MASZ is a selfhostable highly sophisticated moderation bot for Discord. Includes a web dashboard and a discord bot.
https://discord.gg/5zjpzw6h3S
Other
72 stars 17 forks source link

Slash Commands: Extension for a "cleanup all" command #487

Closed Bricksmaster closed 2 years ago

Bricksmaster commented 2 years ago

Currently, the /cleanup slash command is quite limited e.g. to one channel for a specific user. Especially after a server raid, deleting all the messages can cost a lot of time even with the MASZ bot.

Therefore, the slash command should be extended with a "cleanup all" command. Executing this command will delete every message/image/file/etc. from the provided UserID at the whole server. With this command, it is possible to delete problematic messages from a troll/raid user convenient and with less time.

zaanposni commented 2 years ago

Deleting all messages might be very slow, I would make two modes for this:

However, the second mode could possibly make the MASZ instance unstable because discords ratelimit will be triggered very often while using this mode.

Possible solution: Only use the 2 weeks old mode? How do you feel about that @Bricksmaster ?

Bricksmaster commented 2 years ago

The /cleanup command for all message usually gets used for accounts which were used for spamming. Therefore, there are a lot of new messages but in several channels. The 2 weeks feature should work well and be default. But there should be an optional feature to delete absolute everything from a user with the warning that it can slow down MASZ.

zaanposni commented 2 years ago

fixed in v3 release branch