update
This commit is contained in:
13
CLAUDE.md
13
CLAUDE.md
@@ -65,6 +65,8 @@ docker compose up -d
|
||||
- Factory pattern via `create_ai_provider(provider, api_key)`
|
||||
- `ModerationResult` includes severity scoring based on confidence + category weights
|
||||
- Sensitivity setting (0-100) adjusts thresholds per guild
|
||||
- **NSFW-Only Filtering** (default: `True`): When enabled, only sexual content is filtered; violence, harassment, etc. are allowed
|
||||
- Filtering controlled by `nsfw_only_filtering` field in `GuildSettings`
|
||||
|
||||
## Verification System
|
||||
|
||||
@@ -82,6 +84,17 @@ docker compose up -d
|
||||
- `get_rate_limiter()` returns singleton instance
|
||||
- Default limits configured for commands, moderation, verification, messages
|
||||
|
||||
## Notification System
|
||||
|
||||
- `utils/notifications.py` contains `send_moderation_notification()` utility
|
||||
- Handles sending moderation warnings to users with DM → in-channel fallback
|
||||
- **In-Channel Warnings** (default: `False`): Optional PUBLIC channel messages when DMs fail
|
||||
- **IMPORTANT**: In-channel messages are PUBLIC, visible to all users (Discord API limitation)
|
||||
- Temporary messages auto-delete after 10 seconds to minimize clutter
|
||||
- Used by automod, AI moderation, and manual moderation commands
|
||||
- Controlled by `send_in_channel_warnings` field in `GuildSettings`
|
||||
- Disabled by default for privacy reasons
|
||||
|
||||
## Adding New Cogs
|
||||
|
||||
1. Create file in `src/guardden/cogs/`
|
||||
|
||||
Reference in New Issue
Block a user