Discord edge
Slash commands, mentions, permissions, typing states, and readable embeds live in focused cogs.
cogs/PYTHON · DISCORD.PY · SQLITE
Browse the working architecture, inspect every source file, and download a clean async starter you can run locally or deploy.
SYSTEM MAP
Slash commands, mentions, permissions, typing states, and readable embeds live in focused cogs.
cogs/An OpenAI-compatible HTTP client adds timeouts, retry policy, provider configuration, and safe error messages.
services/ai_service.pySQLite keeps guild settings and per-user/channel conversations isolated, capped, expiring, and resettable.
database.pySpam, blocked words, link filtering, warnings, and moderator logs run through explicit validated rules.
cogs/moderation.pySOURCE EXPLORER
Select a file from the project tree to inspect it.
LAUNCH CHECKLIST
Copy .env.example to .env. Add the Discord token, AI key, provider URL, and model. Never commit .env.
Use bot and applications.commands scopes. Enable only Message Content, then grant Send Messages, Embed Links, Read History, and Moderate Members if needed.
Run the bot once to sync global commands, or set DEV_GUILD_ID for instant development sync. Watch logs for permission or intent errors.
Use a worker on Railway, Render, Fly.io, or a small VPS. Mount persistent storage for SQLite and configure health-aware restarts.