
This is a Discord bot system designed to manage and protect chat rooms within a server. It allows you to configure custom settings for each room, such as allowed content types, languages, and message timers. The bot also sends alerts when rules are broken to ensure a safe and organized environment.
Key Features
Room Management:
- Add new rooms to the system.
- Edit settings for added rooms.
- View all configured rooms.
Content Type Settings:
- Allow specific types of content:
- Text only
- Images only
- Videos only
- GIFs only
- Commands only
- Images + Text only
Language Settings:
- Specify allowed languages per room.
- Support for multiple languages.
Message Timer:
- Set a cooldown time between messages from the same user.
Notifications:
- Send alerts in the channel when rules are broken.
- Send direct messages to users who violate rules.
Debug Mode:
- Enable or disable debug mode for detailed logs.
How It Works
1. Initialization
- Load settings from JSON files.
- Create a control panel message in a designated channel.
2. Interaction Handling
- Handle button clicks, select menu choices, and modal submissions to change room settings.
3. Message Validation
- Check messages against content type, language, and timer rules.
- Delete messages that break rules and notify users or channels.