# rainyxeon/moonvine architecture

> Architecture diagram of the GitHub repository rainyxeon/moonvine, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rainyxeon/moonvine
- Repository: https://github.com/rainyxeon/moonvine

## Overview

MoonVine is an experimental Discord bot rewrite, not a documented working music-bot workflow: the README lists a simple working bot and Discord SDK as TODOs. The tree shows command, event, context, configuration, deployment, localization, and Discord-library areas, but no source excerpts establish how they call or dispatch to one another. The graph therefore maps these components without asserting runtime relationships.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bot["Bot application"]
  node_app_entry["Application entry<br/>[main.v]"]
  node_command_entry["Command entry<br/>[main.v]"]
  node_info_commands["Info commands<br/>[main.v]"]
  node_dev_command["Dev command<br/>[dev.v]"]
  node_help_command["Help command<br/>[help.v]"]
  node_invite_command["Invite command<br/>[invite.v]"]
  node_ping_command["Ping command<br/>[ping.v]"]
  node_uptime_command["Uptime command<br/>[uptime.v]"]
  node_app_context["App context<br/>[app.v]"]
  node_command_context["Command context<br/>[commands.v]"]
  node_reader_config["Reader config<br/>[reader.v]"]
  node_client_events["Client events<br/>[main.v]"]
  node_guild_events["Guild events<br/>[main.v]"]
  node_interaction_event["Interaction event"]
  node_message_event["Message event<br/>[message_create.v]"]
  node_deploy_service["Deployment service<br/>[deploy_service.v]"]
  node_translations["Translations"]
end

subgraph group_discord["Discord library"]
  node_discord_client["Discord client<br/>[client.v]"]
  node_discord_gateway["Gateway<br/>[gateway.v]"]
  node_discord_interactions["Interactions<br/>[interactions.v]"]
  node_discord_messages["Messages<br/>[messages.v]"]
  node_discord_guilds["Guilds<br/>[guilds.v]"]
end

subgraph group_support["Supporting libraries"]
  node_i18n_library["I18n library<br/>[main.v]"]
  node_pretty_ms["Duration formatting<br/>[main.v]"]
end

click node_app_entry "https://github.com/rainyxeon/moonvine/blob/main/main.v"
click node_command_entry "https://github.com/rainyxeon/moonvine/blob/main/commands/main.v"
click node_info_commands "https://github.com/rainyxeon/moonvine/blob/main/commands/info/main.v"
click node_dev_command "https://github.com/rainyxeon/moonvine/blob/main/commands/info/dev.v"
click node_help_command "https://github.com/rainyxeon/moonvine/blob/main/commands/info/help.v"
click node_invite_command "https://github.com/rainyxeon/moonvine/blob/main/commands/info/invite.v"
click node_ping_command "https://github.com/rainyxeon/moonvine/blob/main/commands/info/ping.v"
click node_uptime_command "https://github.com/rainyxeon/moonvine/blob/main/commands/info/uptime.v"
click node_app_context "https://github.com/rainyxeon/moonvine/blob/main/context/app.v"
click node_command_context "https://github.com/rainyxeon/moonvine/blob/main/context/commands.v"
click node_reader_config "https://github.com/rainyxeon/moonvine/blob/main/configs/reader.v"
click node_client_events "https://github.com/rainyxeon/moonvine/blob/main/events/client/main.v"
click node_guild_events "https://github.com/rainyxeon/moonvine/blob/main/events/guild/main.v"
click node_interaction_event "https://github.com/rainyxeon/moonvine/blob/main/events/guild/interaction_create.v"
click node_message_event "https://github.com/rainyxeon/moonvine/blob/main/events/guild/message_create.v"
click node_deploy_service "https://github.com/rainyxeon/moonvine/blob/main/services/deploy_service.v"
click node_translations "https://github.com/rainyxeon/moonvine/tree/main/translation/en"
click node_discord_client "https://github.com/rainyxeon/moonvine/blob/main/libs/discord/client.v"
click node_discord_gateway "https://github.com/rainyxeon/moonvine/blob/main/libs/discord/gateway.v"
click node_discord_interactions "https://github.com/rainyxeon/moonvine/blob/main/libs/discord/interactions.v"
click node_discord_messages "https://github.com/rainyxeon/moonvine/blob/main/libs/discord/messages.v"
click node_discord_guilds "https://github.com/rainyxeon/moonvine/blob/main/libs/discord/guilds.v"
click node_i18n_library "https://github.com/rainyxeon/moonvine/blob/main/libs/i18n/main.v"
click node_pretty_ms "https://github.com/rainyxeon/moonvine/blob/main/libs/pretty_ms/main.v"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_entry,node_command_entry,node_info_commands,node_dev_command,node_help_command,node_invite_command,node_ping_command,node_uptime_command,node_app_context,node_command_context,node_reader_config,node_client_events,node_guild_events,node_interaction_event,node_message_event,node_deploy_service,node_translations toneBlue
class node_discord_client,node_discord_gateway,node_discord_interactions,node_discord_messages,node_discord_guilds toneAmber
class node_i18n_library,node_pretty_ms toneMint
```

## Components

### Bot application

- [Application entry](https://github.com/rainyxeon/moonvine/blob/main/main.v): `main.v`
- [Command entry](https://github.com/rainyxeon/moonvine/blob/main/commands/main.v): `commands/main.v`
- [Info commands](https://github.com/rainyxeon/moonvine/blob/main/commands/info/main.v): `commands/info/main.v`
- [Dev command](https://github.com/rainyxeon/moonvine/blob/main/commands/info/dev.v): `commands/info/dev.v`
- [Help command](https://github.com/rainyxeon/moonvine/blob/main/commands/info/help.v): `commands/info/help.v`
- [Invite command](https://github.com/rainyxeon/moonvine/blob/main/commands/info/invite.v): `commands/info/invite.v`
- [Ping command](https://github.com/rainyxeon/moonvine/blob/main/commands/info/ping.v): `commands/info/ping.v`
- [Uptime command](https://github.com/rainyxeon/moonvine/blob/main/commands/info/uptime.v): `commands/info/uptime.v`
- [App context](https://github.com/rainyxeon/moonvine/blob/main/context/app.v): `context/app.v`
- [Command context](https://github.com/rainyxeon/moonvine/blob/main/context/commands.v): `context/commands.v`
- [Reader config](https://github.com/rainyxeon/moonvine/blob/main/configs/reader.v): `configs/reader.v`
- [Client events](https://github.com/rainyxeon/moonvine/blob/main/events/client/main.v): `events/client/main.v`
- [Guild events](https://github.com/rainyxeon/moonvine/blob/main/events/guild/main.v): `events/guild/main.v`
- [Interaction event](https://github.com/rainyxeon/moonvine/blob/main/events/guild/interaction_create.v): `events/guild/interaction_create.v`
- [Message event](https://github.com/rainyxeon/moonvine/blob/main/events/guild/message_create.v): `events/guild/message_create.v`
- [Deployment service](https://github.com/rainyxeon/moonvine/blob/main/services/deploy_service.v): `services/deploy_service.v`
- [Translations](https://github.com/rainyxeon/moonvine/tree/main/translation/en): `translation/en`

### Discord library

- [Discord client](https://github.com/rainyxeon/moonvine/blob/main/libs/discord/client.v): `libs/discord/client.v`
- [Gateway](https://github.com/rainyxeon/moonvine/blob/main/libs/discord/gateway.v): `libs/discord/gateway.v`
- [Interactions](https://github.com/rainyxeon/moonvine/blob/main/libs/discord/interactions.v): `libs/discord/interactions.v`
- [Messages](https://github.com/rainyxeon/moonvine/blob/main/libs/discord/messages.v): `libs/discord/messages.v`
- [Guilds](https://github.com/rainyxeon/moonvine/blob/main/libs/discord/guilds.v): `libs/discord/guilds.v`

### Supporting libraries

- [I18n library](https://github.com/rainyxeon/moonvine/blob/main/libs/i18n/main.v): `libs/i18n/main.v`
- [Duration formatting](https://github.com/rainyxeon/moonvine/blob/main/libs/pretty_ms/main.v): `libs/pretty_ms/main.v`
