How hacty/cubito-v13 works
This is a Discord bot offering server utilities and moderation, economy and Minecraft-style gameplay, music playback, leveling, social features, and slash commands. The principal workflow is a member issuing a command, the bot dispatching it, command logic optionally reading or updating guild/user state or invoking an integration, then replying in Discord. The excerpts show selected command-to-storage and music relationships; many command and event links are not sampled, so those are omitted rather than inferred.
Main entry points: index.js Bot entrypoint · prefix.js Prefix commands · moderacion Moderation commands · economia Economy commands
Components 27
Bot runtime
- Bot entrypoint
index.js - Bot configuration
config.js - Database connection
conexion.js - Prefix commands
bot/messageCreate/prefix.js - Slash commands
slashes.js
Command features
- Utility commands
comandos/Utiles - Moderation commands
comandos/moderacion - Economy commands
comandos/economia - Minecraft commands
comandos/minecraft - Level commands
comandos/niveles - Owner commands
comandos/owners
Persistent state
- Economy state
Schema/economia-schema.js - Mute settings
Schema/mute.js - Warning records
Schema/warns.js - Level records
Schema/levels.js - Suggestion records
Schema/SugerenciasSchema.js - Vote records
Schema/VotosSchema.js - Guild configuration
Schema/guildconfigs.js
Media and games
- Music queue and playback
global/music.js - Akinator game
util/akinator.js - Entertainment commands
comandos/divercion
Guild services
- Welcome handler
handlers/bienvenida.js - Guild setup
modelos/setups.js - Guild event handlers
eventos/guild - Button interactions
otros/botones.js
Other components
- Discord member
- Discord platform
Connections 25
- Discord member → Discord platform: issues commands
- Discord platform → Bot entrypoint: delivers events
- Bot entrypoint → Bot configuration: loads
index.js - Bot entrypoint → Database connection: loads
index.js - Bot entrypoint → Guild configuration: imports
index.js - Bot entrypoint → Level records: updates
index.js - Bot entrypoint → Suggestion records: imports
index.js - Bot entrypoint → Vote records: imports
index.js - Bot entrypoint → Akinator game: imports
index.js - Bot entrypoint → Slash commands: loads
index.js - Discord member → Prefix commands: invokes
- Prefix commands → Utility commands: dispatches
- Prefix commands → Moderation commands: dispatches
- Prefix commands → Economy commands: dispatches
- Prefix commands → Minecraft commands: dispatches
- Prefix commands → Level commands: dispatches
- Prefix commands → Entertainment commands: dispatches
- Discord member → Slash commands: invokes
- Economy commands → Economy state: reads and updates
comandos/economia/buy.js - Minecraft commands → Economy state: reads and updates
comandos/minecraft/craft.js - Moderation commands → Mute settings: reads
comandos/moderacion/mute.js - Moderation commands → Warning records: uses
comandos/moderacion/warn.js - Level commands → Level records: reads
comandos/niveles/rank.js - Music queue and playback → Discord platform: plays audio
- Discord platform → Discord member: returns replies