How titannickbub/satbot works
SatBot is a multi-platform community bot. Members interact through independently selectable WhatsApp, Telegram, or Discord integrations; those integrations expose community commands and automated protections, with results delivered back through the chosen platform. The README documents the major capability areas, while the excerpts show selected moderation, configuration, and feature implementations. Since the main dispatcher and most command implementations were not sampled, feature-to-entry-point links are shown as unverified rather than asserted as direct calls.
Main entry points: core.js Command runtime · adm Administration · middlewares Automatic protections · antiraidHelper.js Anti-raid rules
Components 25
Platform integrations
- WhatsApp adapter
platforms/whatsapp.js - Telegram adapter
platforms/telegram.js - Discord adapter
platforms/discord.js
Bot runtime
- Startup
index.js - Command runtime
core.js - Web dashboard
functions/webServer.js
Community management
- Administration
commands/adm - Member moderation
functions/moderationHelper.js - Automatic protections
middlewares - Anti-link rules
functions/antilinkHelper.js - Anti-raid rules
functions/antiraidHelper.js - Community settings
functions/groupSettings.js
Member features
- Economy commands
commands/economia - Virtual economy
functions/economy.js - XP commands
commands/contas/xp.js - XP progression
functions/xp.js - Profiles and accounts
functions/profiles.js - Entertainment and RPG
commands/diversao - Marriage service
functions/marriageService.js - AI and downloads
commands/ia
Shared services
- Bot configuration
functions/config.js - Owner access
functions/owners.js - Scheduled tasks
functions/schedulerHelper.js - API and media
functions/api.js
Other components
- Community members
Connections 25
- Community members → WhatsApp adapter: use bot
README.md - Community members → Telegram adapter: use bot
README.md - Community members → Discord adapter: use bot
README.md - Startup → Command runtime: loads runtime
index.js - Startup → Web dashboard: loads dashboard
index.js - WhatsApp adapter → Command runtime: dispatches commands
- Telegram adapter → Command runtime: dispatches commands
- Discord adapter → Command runtime: dispatches commands
- Command runtime → Administration: exposes commands
- Command runtime → Economy commands: exposes commands
- Command runtime → XP commands: exposes commands
- Command runtime → Entertainment and RPG: exposes commands
- Command runtime → AI and downloads: exposes commands
- Command runtime → Automatic protections: runs protections
- Automatic protections → Anti-link rules: uses rules
- Automatic protections → Anti-raid rules: uses rules
middlewares/antiraid.js - Anti-raid rules → Member moderation: applies actions
middlewares/antiraid.js - Anti-raid rules → Community settings: resolves settings
functions/antiraidHelper.js - Economy commands → Virtual economy: uses economy
commands/economia/buscasinais.js - XP commands → XP progression: uses XP
commands/contas/xp.js - Entertainment and RPG → Marriage service: offers marriage
- Virtual economy → Profiles and accounts: uses accounts
functions/economy.js - Bot configuration → Community settings: separate settings
- Administration → Owner access: checks owner access
commands/adm/seguranca/antilink.js - Administration → Bot configuration: configures protections