How carson-eeee/event-schedule works
Project type and purpose
• This is a Python-based Discord bot (“event-schedule”) whose job is to respond to user commands on Discord, pull or generate event schedules (from local JSON or via AI), produce QR codes, and fetch weather information. It’s an event-scheduling assistant running entirely as a single process (bot.py) with multiple helper modules.
File structure
• Top level:
• bot.py ← main entrypoint, Discord client and command handlers
• timetable_functions.py ← logic to load/test schedules (JSON in test_data)
• qr_code.py ← QR code generation module
• request_AI.py ← wrapper around OpenAI API calls
• weather.py ← weather API integration
• test_data/ ← local JSON files (sample event schedules)
• qrcode_logs.log… ← runtime log file
• .txt ← developer notes
• .env ← environment variable definitions (token, API keys)
• There are no separate “frontend” or “backend” directories—this is a single service with clear functional modules.
• Configuration is minimal: environment variables (DISCORD_BOT_TOKEN, OPENAI_API_KEY) and Python dependencies (implied by imports).
Insights from README
• The bot needs a Discord token and an OpenAI API key.
• Usage is simply “python bot.py”. No containerization, no external database.