A Discord bot for managing Minecraft server whitelist requests through RCON and automatic streaming schedule detection with interactive approval workflow using GPT-4 Vision AI.
- Whitelist request system with Mojang username verification
- Moderation approval system
- PostgreSQL database integration
- RCON server command execution
- NEW: AI-powered streaming schedule detection from images using GPT-4 Vision
- NEW: Staff approval workflow for schedule posts
- NEW: Automatic posting to announcement channel
- English language support
- Python 3.8 or higher
- PostgreSQL database
- Discord Bot Token
- Minecraft Server with RCON enabled
- Discord Server with appropriate permissions
- NEW: OpenAI API Key (for GPT-4 Vision schedule detection)
- Clone the repository:
git clone https://github.com/yourusername/quingcorporation-bot.git
cd quingcorporation-bot-
AI-powered Schedule Detection is automatically included in Docker!
- GPT-4 Vision API integration ist bereits konfiguriert
- Alle benötigten Dependencies (ohne Tesseract/OCR) sind bereits installiert
-
Copy
.env.exampleto.envand fill in your configuration:
cp .env.example .env- Edit the
.envfile with your credentials:
- Discord Bot Token
- Discord Guild ID
- Mod Channel ID
- RCON Host, Port, and Password
- Database credentials
- NEW: OpenAI API Key (required for schedule detection)
- NEW: Schedule Channel ID, Emoji ID, and Announcement Channel ID
- Optional:
ANNOUNCEMENT_PING_ROLE_IDto mention a role on schedule posts
- Build and start the containers:
docker-compose build --no-cache
docker-compose up -d- Clone the repository:
git clone https://github.com/yourusername/quingcorporation-bot.git
cd quingcorporation-bot- Install dependencies:
pip install -r requirements.txt-
Get OpenAI API Key (for AI-powered schedule detection):
- Visit OpenAI Platform
- Create a new API key
- Add it to your
.envfile asOPENAI_API_KEY
-
Copy
.env.exampleto.envand fill in your configuration:
cp .env.example .env- Edit the
.envfile with your credentials:
- Discord Bot Token
- Discord Guild ID
- Mod Channel ID
- RCON Host, Port, and Password
- Database credentials
- NEW: OpenAI API Key (required for schedule detection)
- NEW: Schedule Channel ID, Emoji ID, and Announcement Channel ID
- Start the bot:
# Docker
docker-compose up -d
# Manual
python -m src.bot-
Use the
/whitelistcommand in your Discord server to start the whitelist process. -
NEW: AI-Powered Schedule Workflow:
- Post schedule images in the configured schedule channel
- Bot uses GPT-4 Vision to analyze image and extract structured data
- Bot creates formatted message with extracted events
- Staff can approve (✅) or reject (❌) the schedule
- Approved schedules are automatically posted to announcement channel
/whitelist- Start the whitelist request process- NEW:
/schedule_test- Test schedule detection with image URL - NEW:
/schedule_reload- Reload schedule detector configuration
Moderators can approve or reject whitelist requests by reacting with:
- ✅ - Approve request
- ❌ - Reject request
The bot provides an interactive workflow for schedule management using GPT-4 Vision AI:
- Post an image with a weekly schedule in the configured schedule channel
- Bot automatically processes the image using GPT-4 Vision AI
- AI extracts structured data (dates, times, events) and converts to XML
- Review message is posted with original image + formatted text
- Staff members can review the AI-generated schedule
- React with ✅ to approve and post to announcement channel
- React with ❌ to reject and discard the schedule
- Approved schedules are posted to the announcement channel with the original image
- Rejected schedules are discarded and the workflow ends
- GPT-4 Vision analyzes the image and extracts all schedule information
- Structured XML output ensures consistent data format
- Automatic timezone handling (converts to UTC)
- Robust event detection even with complex layouts
- ⏳ Processing - Image is being processed by AI
- ✅ Approve - Schedule approved and posted
- ❌ Reject - Schedule rejected and discarded
⚠️ Error - Processing error occurred
For detailed information, see:
- SCHEDULE_DETECTION.md - General documentation
- DOCKER_SCHEDULE_SETUP.md - Docker-specific setup
MIT License