Deletes a member's messages server-wide the moment they leave, are kicked, or are banned (all fire on_member_remove; audit log classifies which). Generates a self-contained HTML report with channel-switching, search, and attachment previews, alongside per-guild config for triggers, exemptions, scan scope, dry-run mode, and report retention. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
22 lines
933 B
Python
22 lines
933 B
Python
"""
|
|
GhostWipe - Auto-deletes a departing member's messages server-wide and
|
|
produces a full HTML audit log of what was removed.
|
|
"""
|
|
|
|
from redbot.core.bot import Red
|
|
|
|
from .ghostwipe import GhostWipe
|
|
|
|
__red_end_user_data_statement__ = (
|
|
"This cog stores configuration data (enabled state, log channel, exemption lists) per server. "
|
|
"When a member leaves, is kicked, or is banned, it deletes their messages across the server and "
|
|
"saves the deleted message content, attachments metadata, and timestamps to local disk as an HTML/JSON "
|
|
"audit report so staff can review what was removed. This data is not sent anywhere off the host "
|
|
"running the bot. Server staff can disable content capture (redacted reports) or set a retention "
|
|
"period to auto-delete old reports via `[p]ghostwipe report content` and `[p]ghostwipe retention`."
|
|
)
|
|
|
|
|
|
async def setup(bot: Red) -> None:
|
|
await bot.add_cog(GhostWipe(bot))
|
|
|