How mendesdevel0per/visionapplications works
This repository is a Discord bot and companion web service for configuring and operating Discord communities, including a storefront, tickets, giveaways, automations, moderation/protection, and bot hosting controls. The main user-to-result path is a Discord interaction handled by a bot command or feature module, with configuration and operational data persisted through the bot database; the web backend separately serves dashboard/API and billing functions. The tree documents broad capabilities, but sampled source is limited, so several feature links are shown as unverified rather than asserted as calls.
Main entry points: database.py Bot data access · __init__.py WebSocket handlers · app.js Web API server · update_api.py Cloud API updates
Components 22
Discord bot
- Bot runtime
bot/bot.py - Bot commands
bot/commands - Bot data access
bot/functions/database.py - MongoDB collection
bot/connections/mongo_db.py
Store and payments
- Storefront
bot/modules/loja - Purchase management
bot/modules/loja/cart/purchase_manager.py - Product stock
bot/modules/loja/cart/stock_manager.py - User balance
bot/modules/loja/saldo/balance_manager.py - Payment workflows
bot/functions/payments
Community features
- Ticket system
bot/modules/tickets - Giveaways
bot/modules/giveaways - Automations
bot/modules/automations - Server protection
bot/modules/protection
Cloud control
- WebSocket handlers
bot/connections/handlers/__init__.py - Bot WebSocket
bot/connections/ws_manager.py - Cloud API updates
bot/modules/cloud/update_api.py
Web platform
- Dashboard client
site/frontend/src/app/api/[...endpoint]/route.ts - Web API server
site/backend/src/app.js - Bot application records
site/backend/src/database/models/Application.js - Billing services
site/backend/src/services/billing/inactivityService.js - Backend service runner
site/backend/server.js
Other components
- Discord user
Connections 23
- Discord user → Bot commands: invokes
- Bot commands → Bot data access: reads/writes
bot/commands/vendas/sincronizar_clientes.py - Bot data access → MongoDB collection: queries
bot/functions/database.py - Storefront → Purchase management: manages purchases
- Purchase management → Bot data access: reads/writes
bot/modules/loja/cart/purchase_manager.py - Product stock → Bot data access: reads/writes
bot/modules/loja/cart/stock_manager.py - User balance → Bot data access: reads/writes
bot/modules/loja/saldo/balance_manager.py - Payment workflows → User balance: credits balance
- Ticket system → Bot data access: persists settings
- Giveaways → Bot data access: persists settings
- Automations → Bot data access: persists settings
- Server protection → Bot data access: persists settings
bot/modules/protection/protecaogeral/webhooks/helpers.py - Bot WebSocket → WebSocket handlers: registers handlers
bot/connections/ws_manager.py - WebSocket handlers → Storefront: registers store
bot/connections/handlers/__init__.py - WebSocket handlers → Ticket system: registers tickets
bot/connections/handlers/__init__.py - WebSocket handlers → Giveaways: registers giveaways
bot/connections/handlers/__init__.py - WebSocket handlers → Server protection: registers protection
bot/connections/handlers/__init__.py - Cloud API updates → Bot WebSocket: uses connection
bot/modules/cloud/update_api.py - Cloud API updates → Bot data access: reads/writes
bot/modules/cloud/update_api.py - Dashboard client → Web API server: forwards requests
- Backend service runner → Web API server: starts server
site/backend/server.js - Backend service runner → Billing services: starts service
site/backend/server.js - Web API server → Bot application records: serves API data