# manishbhaiii/roxy-plus architecture

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

- Interactive diagram: https://gitdiagram.com/manishbhaiii/roxy-plus
- Repository: https://github.com/manishbhaiii/roxy-plus

## Overview

Roxy Plus is a Discord selfbot with a dashboard for configuring commands and account features. The main workflow is a user configuring behavior through the dashboard or issuing a command; the running client handles Discord events and performs the requested action. Major branches include music playback, message automation, presence, server cloning, recording, and quests. The excerpts show dashboard-to-manager calls, client initialization, and quest orchestration; several command modules are represented by their directory because their implementation was not sampled.

Main entry points: [`index.js`](https://github.com/manishbhaiii/roxy-plus/blob/main/index.js) (Selfbot runtime), [`dashboard/index.js`](https://github.com/manishbhaiii/roxy-plus/blob/main/dashboard/index.js) (Dashboard API), [`quests/manager.js`](https://github.com/manishbhaiii/roxy-plus/blob/main/quests/manager.js) (Quest orchestration), [`quests/client.js`](https://github.com/manishbhaiii/roxy-plus/blob/main/quests/client.js) (Quest client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Runtime and dashboard"]
  node_runtime["Selfbot runtime<br/>[index.js]"]
  node_dashboard["Dashboard API<br/>[index.js]"]
end

subgraph group_automation["Message automation"]
  node_ai["AI replies<br/>[aiManager.js]"]
  node_auto["Timed messages<br/>[autoMsg.js]"]
  node_mirror["Message mirroring<br/>[mirrorManager.js]"]
  node_reactions["Auto reactions<br/>[reactionManager.js]"]
  node_welcome["Welcome messages<br/>[welcomerManager.js]"]
end

subgraph group_features["Account features"]
  node_allowed["Access control<br/>[allowedManager.js]"]
  node_commands["Other commands"]
  node_presence["RPC presence<br/>[rpcManager.js]"]
  node_status["Status settings<br/>[statusManager.js]"]
  node_cloner["Server cloning<br/>[ServerCloner.js]"]
  node_recorder["Voice recording<br/>[rec.js]"]
end

subgraph group_musicquests["Music and quests"]
  node_queue["Music queue<br/>[queue.js]"]
  node_lavalink["Lavalink playback<br/>[lavalink.js]"]
  node_questbridge["Quest orchestration<br/>[manager.js]"]
  node_questclient["Quest client<br/>[client.js]"]
  node_questmanager["Quest execution<br/>[questManager.js]"]
end

node_user(("User"))
node_discord(("Discord"))

node_user -->|"configures"| node_dashboard
node_user -->|"issues commands"| node_runtime
node_runtime -->|"starts"| node_dashboard
node_dashboard -->|"updates settings"| node_presence
node_presence -->|"loads status"| node_status
node_runtime -->|"initializes"| node_ai
node_runtime -->|"initializes"| node_reactions
node_runtime -->|"initializes"| node_mirror
node_runtime -->|"initializes"| node_auto
node_runtime -->|"handles joins"| node_welcome
node_runtime -->|"updates queue"| node_queue
node_runtime -->|"handles playback"| node_lavalink
node_runtime -.->|"loads feature"| node_cloner
node_dashboard -->|"reads settings"| node_reactions
node_dashboard -->|"serves settings"| node_auto
node_dashboard -->|"reads settings"| node_welcome
node_dashboard -->|"controls playback"| node_recorder
node_dashboard -->|"imports manager"| node_questbridge
node_questbridge -->|"creates client"| node_questclient
node_questbridge -->|"runs quests"| node_questmanager
node_questclient -->|"builds manager"| node_questmanager
node_runtime -.->|"connects"| node_discord
node_questclient -.->|"requests quest data"| node_discord

click node_runtime "https://github.com/manishbhaiii/roxy-plus/blob/main/index.js"
click node_dashboard "https://github.com/manishbhaiii/roxy-plus/blob/main/dashboard/index.js"
click node_allowed "https://github.com/manishbhaiii/roxy-plus/blob/main/commands/allowedManager.js"
click node_ai "https://github.com/manishbhaiii/roxy-plus/blob/main/commands/aiManager.js"
click node_auto "https://github.com/manishbhaiii/roxy-plus/blob/main/commands/autoMsg.js"
click node_mirror "https://github.com/manishbhaiii/roxy-plus/blob/main/commands/mirrorManager.js"
click node_reactions "https://github.com/manishbhaiii/roxy-plus/blob/main/commands/reactionManager.js"
click node_welcome "https://github.com/manishbhaiii/roxy-plus/blob/main/commands/welcomerManager.js"
click node_commands "https://github.com/manishbhaiii/roxy-plus/tree/main/commands"
click node_presence "https://github.com/manishbhaiii/roxy-plus/blob/main/commands/rpcManager.js"
click node_status "https://github.com/manishbhaiii/roxy-plus/blob/main/commands/statusManager.js"
click node_cloner "https://github.com/manishbhaiii/roxy-plus/blob/main/cloner/ServerCloner.js"
click node_recorder "https://github.com/manishbhaiii/roxy-plus/blob/main/commands/rec.js"
click node_queue "https://github.com/manishbhaiii/roxy-plus/blob/main/music/queue.js"
click node_lavalink "https://github.com/manishbhaiii/roxy-plus/blob/main/music/lavalink.js"
click node_questbridge "https://github.com/manishbhaiii/roxy-plus/blob/main/quests/manager.js"
click node_questclient "https://github.com/manishbhaiii/roxy-plus/blob/main/quests/client.js"
click node_questmanager "https://github.com/manishbhaiii/roxy-plus/blob/main/quests/questManager.js"

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_runtime,node_dashboard,node_user toneBlue
class node_ai,node_auto,node_mirror,node_reactions,node_welcome toneAmber
class node_allowed,node_commands,node_presence,node_status,node_cloner,node_recorder toneMint
class node_queue,node_lavalink,node_questbridge,node_questclient,node_questmanager toneRose
class node_discord toneIndigo
```

## Components

### Runtime and dashboard

- [Selfbot runtime](https://github.com/manishbhaiii/roxy-plus/blob/main/index.js): `index.js`
- [Dashboard API](https://github.com/manishbhaiii/roxy-plus/blob/main/dashboard/index.js): `dashboard/index.js`

### Message automation

- [AI replies](https://github.com/manishbhaiii/roxy-plus/blob/main/commands/aiManager.js): `commands/aiManager.js`
- [Timed messages](https://github.com/manishbhaiii/roxy-plus/blob/main/commands/autoMsg.js): `commands/autoMsg.js`
- [Message mirroring](https://github.com/manishbhaiii/roxy-plus/blob/main/commands/mirrorManager.js): `commands/mirrorManager.js`
- [Auto reactions](https://github.com/manishbhaiii/roxy-plus/blob/main/commands/reactionManager.js): `commands/reactionManager.js`
- [Welcome messages](https://github.com/manishbhaiii/roxy-plus/blob/main/commands/welcomerManager.js): `commands/welcomerManager.js`

### Account features

- [Access control](https://github.com/manishbhaiii/roxy-plus/blob/main/commands/allowedManager.js): `commands/allowedManager.js`
- [Other commands](https://github.com/manishbhaiii/roxy-plus/tree/main/commands): `commands`
- [RPC presence](https://github.com/manishbhaiii/roxy-plus/blob/main/commands/rpcManager.js): `commands/rpcManager.js`
- [Status settings](https://github.com/manishbhaiii/roxy-plus/blob/main/commands/statusManager.js): `commands/statusManager.js`
- [Server cloning](https://github.com/manishbhaiii/roxy-plus/blob/main/cloner/ServerCloner.js): `cloner/ServerCloner.js`
- [Voice recording](https://github.com/manishbhaiii/roxy-plus/blob/main/commands/rec.js): `commands/rec.js`

### Music and quests

- [Music queue](https://github.com/manishbhaiii/roxy-plus/blob/main/music/queue.js): `music/queue.js`
- [Lavalink playback](https://github.com/manishbhaiii/roxy-plus/blob/main/music/lavalink.js): `music/lavalink.js`
- [Quest orchestration](https://github.com/manishbhaiii/roxy-plus/blob/main/quests/manager.js): `quests/manager.js`
- [Quest client](https://github.com/manishbhaiii/roxy-plus/blob/main/quests/client.js): `quests/client.js`
- [Quest execution](https://github.com/manishbhaiii/roxy-plus/blob/main/quests/questManager.js): `quests/questManager.js`

### Other components

- **User**
- **Discord**

## Connections

- User → Dashboard API: configures
- User → Selfbot runtime: issues commands
- Selfbot runtime → Dashboard API: starts (evidence: `index.js`)
- Dashboard API → RPC presence: updates settings (evidence: `dashboard/index.js`)
- RPC presence → Status settings: loads status (evidence: `commands/rpcManager.js`)
- Selfbot runtime → AI replies: initializes (evidence: `index.js`)
- Selfbot runtime → Auto reactions: initializes (evidence: `index.js`)
- Selfbot runtime → Message mirroring: initializes (evidence: `index.js`)
- Selfbot runtime → Timed messages: initializes (evidence: `index.js`)
- Selfbot runtime → Welcome messages: handles joins (evidence: `index.js`)
- Selfbot runtime → Music queue: updates queue (evidence: `index.js`)
- Selfbot runtime → Lavalink playback: handles playback (evidence: `index.js`)
- Selfbot runtime → Server cloning: loads feature
- Dashboard API → Auto reactions: reads settings (evidence: `dashboard/index.js`)
- Dashboard API → Timed messages: serves settings (evidence: `dashboard/index.js`)
- Dashboard API → Welcome messages: reads settings (evidence: `dashboard/index.js`)
- Dashboard API → Voice recording: controls playback (evidence: `dashboard/index.js`)
- Dashboard API → Quest orchestration: imports manager (evidence: `dashboard/index.js`)
- Quest orchestration → Quest client: creates client (evidence: `quests/manager.js`)
- Quest orchestration → Quest execution: runs quests (evidence: `quests/manager.js`)
- Quest client → Quest execution: builds manager (evidence: `quests/client.js`)
- Selfbot runtime → Discord: connects
- Quest client → Discord: requests quest data
