How ihrz/ihrz works
iHorizon is a modular Discord server-management bot. The principal workflow begins with a Discord interaction, routes it through an interaction handler, and delivers a command or component response; event listeners also automate moderation, logging, and community features. The README documents broader capabilities including music, economy, backups, verification, and profiles. The excerpts support only a few concrete internal links, so other subsystem connections are omitted rather than inferred from directory names.
Main entry points: Events Guild events · antiSpamEngine.ts Anti-spam engine · interaction Interaction handlers · ready.ts Client readiness
Components 21
Bot entry
- Interaction handlers
src/Events/interaction - Shard startup
src/index.ts - Client readiness
src/Events/client/ready.ts
Command features
- Message commands
src/Interaction/MessageCommands - Hybrid commands
src/Interaction/HybridCommands - Slash commands
src/Interaction/SlashCommands - Moderation tools
src/Interaction/HybridCommands/moderation - Music player
src/Interaction/HybridCommands/music - Economy system
src/Interaction/HybridCommands/economy
Guild automation
- Ticket system
src/core/modules/ticketsManager.ts - Anti-spam engine
src/core/modules/antiSpamEngine.ts - Server protection
src/core/modules/protectionEngine.ts - Logging engine
src/core/modules/logsEngine.ts - Guild events
src/Events - Google Forms
src/core/modules/googleForms.ts - Ticket transcripts
src/core/modules/ticketTranscripts.ts
Shared services
- Database tables
src/core/database/tables.ts - Card rendering
src/core/modules/uiCard.ts - Log channel lookup
src/core/functions/logChannel.ts - Log card sender
src/core/modules/logCard.ts
Other components
- Discord users
Connections 15
- Discord users → Interaction handlers: sends interactions
src/Events/interaction/slashCommandHandler.ts - Interaction handlers → Slash commands: dispatches commands
- Shard startup → Client readiness: starts client
- Client readiness → Database tables: initializes tables
src/Events/client/ready.ts - Anti-spam engine → Log channel lookup: looks up channel
src/core/modules/antiSpamEngine.ts - Anti-spam engine → Card rendering: builds card
src/core/modules/antiSpamEngine.ts - Logging engine → Log card sender: sends cards
src/core/modules/logsEngine.ts - Guild events → Google Forms: deletes guild forms
src/Events/client/deleteDatabaseDataOnGuildLeave.ts - Guild events → Ticket transcripts: deletes transcripts
src/Events/client/deleteDatabaseDataOnGuildLeave.ts - Guild events → Database tables: clears guild data
src/Events/client/deleteDatabaseDataOnGuildLeave.ts - Discord users → Moderation tools: requests moderation
README.md - Discord users → Music player: requests playback
README.md - Discord users → Economy system: uses economy
README.md - Discord users → Ticket system: opens tickets
README.md - Discord users → Server protection: configures protection
README.md