How kyaguya/project-akira works
Project Akira is a modular Discord bot for campus task management, CTF monitoring and coordination, and AI-assisted queries, with a separate read-only dashboard API. Discord users invoke commands or post campus announcements; the bot’s cogs handle interactions, services apply domain logic, and SQLite stores operational state. CTF Radar also fetches public event data and supports war rooms; the API exposes protected summaries. README capabilities are included, but unsampled cog internals and wiring are not inferred beyond documented or indexed references.
Main entry points: ctf_service.py CTF coordination · ai_companion.py AI companion · bot.py Bot lifecycle · campus.py Campus commands
Components 19
Bot runtime
- Bot lifecycle
bot.py - Admin commands
cogs/admin.py - Persona status
cogs/persona_status.py - Dashboard API
api/server.py
Campus workflow
- Campus commands
cogs/campus.py - Campus tasks
services/campus_service.py - Gemini helper
modules/ai/gemini_helper.py - AI companion
cogs/ai_companion.py
CTF radar
- CTF commands
cogs/ctf.py - CTF coordination
services/ctf_service.py - CTFtime scraper
scrapers/ctftime_scraper.py
Data and integrations
- Input and URL safety
modules/security.py - Job scraper
scrapers/job_scraper.py - Scraper health
scrapers/health.py - SQLite state
database/db.py
Other components
- Discord users
- Dashboard clients
- CTFtime
- AI provider
Connections 27
- Discord users → Bot lifecycle: use commands
README.md - Bot lifecycle → SQLite state: opens state
bot.py - Bot lifecycle → Scraper health: creates tracker
bot.py - Bot lifecycle → Dashboard API: starts server
bot.py - Discord users → Campus commands: manage tasks
README.md - Campus commands → Campus tasks: manage task data
cogs/campus.py - Campus commands → Input and URL safety: sanitize input
cogs/campus.py - Campus commands → Gemini helper: generate text
cogs/campus.py - AI companion → Input and URL safety: harden input
cogs/ai_companion.py - AI companion → Campus tasks: read task data
cogs/ai_companion.py - AI companion → CTF coordination: read CTF data
cogs/ai_companion.py - AI companion → AI provider: query AI
README.md - Campus tasks → SQLite state: read and write
services/campus_service.py - Discord users → CTF commands: monitor events
README.md - CTF commands → CTF coordination: coordinate events
cogs/ctf.py - CTF commands → CTFtime scraper: fetch events
cogs/ctf.py - CTF coordination → CTFtime scraper: fetch and filter
services/ctf_service.py - CTF coordination → SQLite state: read and write
services/ctf_service.py - CTFtime scraper → CTFtime: fetch events
scrapers/ctftime_scraper.py - CTFtime scraper → Scraper health: report health
scrapers/ctftime_scraper.py - Job scraper → Scraper health: report health
scrapers/job_scraper.py - Scraper health → SQLite state: record status
scrapers/health.py - Dashboard clients → Dashboard API: request dashboard
README.md - Dashboard API → Campus tasks: read task summaries
api/server.py - Dashboard API → CTF coordination: read CTF summaries
api/server.py - Discord users → Admin commands: administer bot
README.md - Discord users → Persona status: check persona
README.md