How princupy/lastride-aio works
LastRide is a Discord guild bot for moderation, server administration, community features, and music. A member issues a command or interacts with a component; the command handler dispatches work to feature services, which may update Discord or persisted guild data and return interactive cards. Major branches include moderation and automod, tickets, leveling, logging, and music. Evidence is limited to the supplied excerpts, source index, and tree; unsampled feature links are omitted or marked unverified rather than inferred.
Main entry points: CommandHandler.cs Command handling · TicketService.cs Ticket workflows · LevelService.cs Leveling and XP · MusicService.cs Music playback
Components 19
Bot runtime
- Startup and DI
Program.cs - Bot lifecycle
Core/BotRunner.cs - Command handling
Core/CommandHandler.cs
Moderation
- Moderation commands
Modules - Automod enforcement
Services/AutoModService.cs - Automod settings
Services/AutoModConfigService.cs
Community features
- Ticket workflows
Services/TicketService.cs - Ticket cards
Builders/TicketComponentBuilder.cs - Leveling and XP
Services/LevelService.cs - Level cards
Builders/LevelComponentBuilder.cs - Guild event logging
Services/LogService.cs - Log cards
Builders/LogComponentBuilder.cs
Music and media
- Music playback
Services/MusicService.cs - Music controls
Builders/MusicComponentBuilder.cs - Voice session tracking
Core/VoiceSessionTracker.cs
Persistence
- MongoDB access
Services/MongoDbService.cs - MongoDB
Other components
- Discord member
- Discord platform
Connections 24
- Discord member → Discord platform: issues commands
- Discord platform → Command handling: delivers events
- Startup and DI → Bot lifecycle: starts
Program.cs - Bot lifecycle → Command handling: initializes
Core/BotRunner.cs - Command handling → Automod enforcement: scans messages
Core/CommandHandler.cs - Command handling → Moderation commands: loads modules
- Automod enforcement → Automod settings: reads settings
Services/AutoModService.cs - Command handling → Ticket workflows: opens tickets
Core/CommandHandler.cs - Ticket workflows → Ticket cards: builds cards
Services/TicketService.cs - Command handling → Leveling and XP: handles leveling
Core/CommandHandler.cs - Leveling and XP → Level cards: builds cards
Services/LevelService.cs - Command handling → Guild event logging: dispatches features
Core/CommandHandler.cs - Guild event logging → Log cards: builds cards
Services/LogService.cs - Bot lifecycle → Music playback: manages lifecycle
Core/BotRunner.cs - Music playback → Music controls: builds playback cards
Services/MusicService.cs - Music playback → Voice session tracking: initializes tracking
Services/MusicService.cs - Automod settings → MongoDB access: uses database access
Services/AutoModConfigService.cs - Ticket workflows → MongoDB access: uses database access
Services/TicketService.cs - Leveling and XP → MongoDB access: uses database access
Services/LevelService.cs - MongoDB access → MongoDB: reads and writes
- Ticket workflows → Discord platform: manages channels
Services/TicketService.cs - Leveling and XP → Discord platform: awards roles
Services/LevelService.cs - Guild event logging → Discord platform: posts event logs
- Music playback → Discord platform: controls voice playback