Skip to content

Architecture

The bot runtime remains separate from the CLI and web application. Web route handlers call services; services use Discord adapters and storage-independent repositories. Handlers may not issue SQL or call Discord.js directly.

CLI command handlers receive injected filesystem, process, network, output, and prompt adapters. Documentation examples use public package exports and must compile in CI.