How bonee4/ayume works
Fuyumi is a sharded Discord bot centered on music playback, with server configuration, DJ controls, playlists, moderation logs, and utility commands. The main workflow starts with a Discord interaction, passes through command lookup and permission checks, then invokes a feature command; music commands use the Lavalink-backed player and may update playback statistics. The README is empty, so capabilities are inferred from the source tree. Several command implementations and event handlers were not sampled; their exact runtime connections are therefore left unasserted.
Main entry points: Command.ts Command framework · AyumeClient.ts Bot client · index.ts Lavalink player · Utils.ts Runtime utilities
Components 20
Bot Runtime
- Client entry
src/Client.ts - Bot client
src/structures/AyumeClient.ts - Runtime utilities
src/structures/Utils.ts - Interaction dispatch
src/events/interactionCreate.ts - Command framework
src/structures/Command.ts - Event framework
src/structures/Event.ts - Logging
src/others/Logger.ts
Music Playback
- Music commands
src/commands/música - DJ controls
src/commands/dj - Lavalink player
src/lavalink/index.ts - Playback statistics
src/lavalink/index.ts - Playlist commands
src/commands/playlists
Guild Features
- Server configuration
src/commands/administrador - Guild lifecycle
src/events/guildEvents - Moderation logs
src/events/modLogs - Guild and user data
src/structures/AyumeClient.ts
User Support
- Help command
src/commands/utilitarios/help.ts - Utility commands
src/commands/utilitarios - Developer command
src/commands/desenvolvedor/eval.ts
Other components
- Discord users
Connections 30
- Discord users → Client entry: starts bot
src/Client.ts - Client entry → Bot client: creates client
src/Client.ts - Bot client → Runtime utilities: constructs
src/structures/AyumeClient.ts - Bot client → Lavalink player: constructs
src/structures/AyumeClient.ts - Bot client → Command framework: stores commands
src/structures/AyumeClient.ts - Bot client → Event framework: stores events
src/structures/AyumeClient.ts - Bot client → Guild and user data: creates database client
src/structures/AyumeClient.ts - Bot client → Runtime utilities: loads on start
src/structures/AyumeClient.ts - Runtime utilities → Command framework: loads command classes
src/structures/Utils.ts - Runtime utilities → Event framework: loads event classes
src/structures/Utils.ts - Discord users → Interaction dispatch: sends interactions
- Interaction dispatch → Command framework: looks up and runs
src/events/interactionCreate.ts - Interaction dispatch → Guild and user data: reads and initializes
src/events/interactionCreate.ts - Command framework → Music commands: dispatches to
src/commands/música/search.ts - Command framework → DJ controls: dispatches to
src/commands/dj/moveTrack.ts - Command framework → Playlist commands: dispatches to
src/commands/playlists/playlist.ts - Command framework → Server configuration: dispatches to
src/commands/administrador/config.ts - Command framework → Help command: dispatches to
src/commands/utilitarios/help.ts - Command framework → Utility commands: dispatches to
src/commands/utilitarios/help.ts - Command framework → Developer command: dispatches to
src/commands/desenvolvedor/eval.ts - Music commands → Lavalink player: searches and queues
src/commands/música/search.ts - Music commands → Runtime utilities: formats duration
src/commands/música/search.ts - DJ controls → Lavalink player: controls playback
- Playlist commands → Lavalink player: uses playback
- Lavalink player → Guild and user data: updates play counts
src/lavalink/index.ts - Lavalink player → Playback statistics: records track plays
src/lavalink/index.ts - Server configuration → Guild and user data: configures guild
src/commands/administrador/config.ts - Guild lifecycle → Guild and user data: handles guild lifecycle
src/events/guildEvents/guildDelete.ts - Moderation logs → Guild and user data: reads log settings
src/events/modLogs/messageUpdate.ts - Help command → Command framework: lists command metadata
src/commands/utilitarios/help.ts