How commonly-ts/discord-bot-template works
This is a Discord bot starter template built around Trivious. Its runtime entry initializes PostgreSQL through TypeORM, then starts a Discord client configured to use src/features as its core path; the included debug slash command is the active feature shown in the tree. The template also provides examples for slash and context-menu commands, components, event modules, and component builders, plus shared interaction utilities. The README documents running and operating the bot but does not describe more application workflows. Framework internals were not sampled, so command discovery and interaction dispatch are not expanded into inferred edges.
Main entry points: src/index.ts Trivious client · command Command examples · builder.example.ts Component builder · debug/index.ts Debug command
Components 17
Bot runtime
- Application entry
src/index.ts - Trivious client
src/index.ts - Debug command
src/features/debug/index.ts - PostgreSQL datasource
src/db/index.ts
Discord authoring
- Command examples
templates/command - Slash command
templates/command/slash-command/index.ts - Context commands
templates/command/context-command - Component example
templates/component/component.example.ts - Component builder
templates/builder/builder.example.ts - Event module
templates/module/module.example.ts - Event example
templates/event/event.example.ts
Shared support
- Interaction utilities
src/shared/utility/functions.ts - Configuration helpers
src/shared/utility/config.ts - Shared builders
src/shared/builders/index.ts - Shared typings
src/shared/typings/index.ts
Other components
- Discord user
- Discord
Connections 8
- Discord user → Discord: uses bot
- Application entry → PostgreSQL datasource: initializes
- Application entry → Trivious client: starts
- Trivious client → Discord: connects
- Trivious client → Debug command: core path
- Command examples → Slash command: includes
- Command examples → Context commands: includes
- Component builder → Component example: builds IDs for