How cristianireyes/ds-bot-core works
This is a TypeScript Discord bot starter centered on guild-scoped slash commands. Discord interactions enter through the initialized client, which dispatches registered commands; the examples calculate arithmetic or count text and reply to the user. A message listener and two reusable message guards are also present, though the excerpts do not show the guards being registered. The README describes a configurable bot token and server allowlist. Connections below are limited to the startup and command-loading behavior shown in source; no storage layer is present.
Main entry points: src/index.ts Slash dispatch · config/index.ts Bot configuration · maths.ts Math commands · another-group.ts Utility commands
Components 10
Bot runtime
- Client startup
src/index.ts - Bot configuration
src/config/index.ts - Slash dispatch
src/index.ts
Bot features
- Math commands
src/commands/maths.ts - Utility commands
src/commands/another-group.ts
Message handling
- Message listener
src/bot.ts - Prefix guard
src/guards/prefix.ts - Not-bot guard
src/guards/noBot.ts
Other components
- Discord user
- Discord platform
Connections 11
- Discord user → Discord platform: invokes commands
readme.md - Discord platform → Slash dispatch: sends interactions
src/index.ts - Client startup → Bot configuration: reads settings
src/index.ts - Client startup → Slash dispatch: initializes dispatch
src/index.ts - Slash dispatch → Math commands: dispatches commands
src/index.ts - Slash dispatch → Utility commands: dispatches commands
src/index.ts - Math commands → Discord platform: replies to interaction
src/commands/maths.ts - Utility commands → Discord platform: replies to interaction
src/commands/another-group.ts - Message listener → Bot configuration: reads guilds
src/bot.ts - Math commands → Bot configuration: reads guilds
src/commands/maths.ts - Utility commands → Bot configuration: reads guilds
src/commands/another-group.ts