How vanderbran/late-work-discord-bot works
Project type and purpose
• This is a single‐service Discord bot written in Python whose job is to accept and manage late assignments from students. There is no separate “frontend” in the traditional sense—Discord itself is the UI.
File structure
• Top level:
• classBot.py – the main bot implementation (event handlers, command logic)
• requirements.txt – Python dependencies (likely includes discord.py or similar)
• README.md – project description
README for additional insights
• The README simply states “Discord bot to accept late work from students.”
• No mention of a database or file store; you may need to infer or ask where submissions are kept. Common patterns are: local JSON/CSV, SQLite, or a cloud database.
Main components and their interactions
• Discord Platform (Gateway & API)
• Bot Service (classBot.py running on Python runtime)
• Data Store (local file or external database—explicitly call out whichever is used or planned)
• Users: Students (send late‐work commands) and Instructor (optional admin commands)
b. Relationships and data flow:
• Student → Discord → Bot Service (receives message via Discord API/WebSocket)
• Bot Service → Data Store (writes metadata or file attachments)
• Bot Service → Discord (sends acknowledgments, reminders)
• Instructor → Discord → Bot Service → (read from Data Store) → Discord
c. Architectural patterns and principles:
• Event‐driven, asynchronous I/O (via discord.py)
• Single‐process, single‐service design (no microservices)
• Clear separation: Discord as “UI,” Bot code as “application logic,” Data Store as “persistence”
d. Relevant technologies/frameworks:
• Python 3.x runtime
• discord.py (or equivalent) library for Discord interactions
• Data store tech: JSON/CSV file, SQLite, PostgreSQL, or cloud DB (call out actual choice)
• Hosting: container (Docker) or PaaS (Heroku, AWS Lambda, etc.)
Detail without over‐engineering
• Even though this is a small script, explicitly call out each role and external dependency.
• Infrastructure pieces you depend on (Discord API, file system or DB, hosting).