How caiocs97/dolinho-bot works
Project type and purpose
• This is an Nx-powered monorepo whose primary “app” is a Discord bot (apps/bot).
• The bot leverages several in-house libraries (under libs/) for database access (Prisma), command‐slashing logic, TradingView integration, payment remessa‐online integration, and shared utilities.
• Purpose: respond to Discord events, execute slash commands, interact with external services (TradingView, Remessa Online), and persist data via Prisma.
File structure
Top level
• apps/bot – the Discord bot service
– src/instances: singletons for Discord client, API wrappers, Prisma client, slasher
– src/events: event handlers for guild, channel, member, message events
– src/commands: modules for exchanges simulation and trading‐view symbol management
• libs/
– database: Prisma schema, migrations, TS library exposing a repo layer
– slash: common slash‐command registration and handling utilities
– tradig-view: wrappers for TradingView API
– remessa-online: wrappers for Remessa Online payment API
– utils: shared helpers (e.g., Discord embed builders, logging)
• config files: Nx workspace (nx.json, tsconfig.base.json), Jest, ESLint, Prettier
README
• Boilerplate Nx README; confirms a multi‐project workspace.
• No further architecture docs, so we infer structure is event‐driven, modular.