How blazingfury3008/strathclydemsccis2026-discord-bot works
This repository is a starter Discord bot. A user invokes one of the example slash commands through Discord; the registered cog handles the interaction and sends a response. The runtime entry point configures intents, registers the cog, syncs application commands, and starts the bot. Environment-backed settings supply the token and logging directory, while shared logging is used by the entry point and cog. The README describes a broader future cogs area, but the tree contains only the example cog. Discord-side dispatch is inferred, so that edge is dashed and uncited.
Main entry points: main.py Bot entry point · example.py Example commands · logging.py Logging setup · config.py Environment config
Components 7
Bot runtime
- Bot entry point
app/main.py
Command handling
- Example commands
app/cogs/example.py
Configuration and logging
- Environment config
app/helper/config.py - Logging setup
app/helper/logging.py
Other components
- Discord user
- Discord platform
- Environment variables
Connections 10
- Discord user → Discord platform: invokes command
- Discord platform → Example commands: dispatches interaction
- Bot entry point → Example commands: registers cog
app/main.py - Bot entry point → Discord platform: starts bot
app/main.py - Bot entry point → Environment config: loads token
app/main.py - Bot entry point → Logging setup: uses logger
app/main.py - Environment variables → Environment config: provides settings
app/helper/config.py - Logging setup → Environment config: reads log directory
app/helper/logging.py - Example commands → Logging setup: logs events
app/cogs/example.py - Example commands → Discord platform: sends responses
app/cogs/example.py