# tkperson/nuking-discord-server-bot-nuke-bot architecture

> Architecture diagram of the GitHub repository tkperson/nuking-discord-server-bot-nuke-bot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tkperson/nuking-discord-server-bot-nuke-bot
- Repository: https://github.com/tkperson/nuking-discord-server-bot-nuke-bot

## Overview

C-REAL is a self-hosted Discord bot whose command workflow lets an authorized user issue commands, which the bot dispatches to server-management features and reports back through Discord. The README documents destructive server-wide operations, resource management, configuration, and presence automation. The sampled source confirms setup, command registration, logging, and some direct HTTP usage; the single-file excerpts do not expose every handler’s wiring, so links for unsampled capabilities are limited to documented command flow.

Main entry points: [`c-realV2.py`](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py) (Command dispatch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Command interaction"]
  node_bot["Discord bot<br/>[c-realV2.py]"]
  node_command_dispatch["Command dispatch<br/>[c-realV2.py]"]
  node_response_logging["Replies and logs<br/>[c-realV2.py]"]
end

subgraph group_server_ops["Server operations"]
  node_server_wide["Server-wide actions<br/>[c-realV2.py]"]
  node_resource_management["Resource management<br/>[c-realV2.py]"]
  node_mass_creation["Bulk creation<br/>[c-realV2.py]"]
  node_member_controls["Member controls<br/>[c-realV2.py]"]
  node_status_automation["Status automation<br/>[c-realV2.py]"]
end

subgraph group_configuration["Configuration"]
  node_configuration_commands["Configuration commands<br/>[c-realV2.py]"]
  node_runtime_settings["Runtime settings<br/>[c-realV2.py]"]
end

subgraph group_integrations["Platform integrations"]
  node_discord_service["Discord platform"]
  node_http_requests["HTTP requests<br/>[c-realV2.py]"]
end

node_operator(("Authorized user"))

node_operator -->|"sends commands"| node_bot
node_bot -->|"dispatches"| node_command_dispatch
node_command_dispatch -->|"routes commands"| node_server_wide
node_command_dispatch -->|"routes commands"| node_resource_management
node_command_dispatch -->|"routes commands"| node_mass_creation
node_command_dispatch -->|"routes commands"| node_member_controls
node_command_dispatch -->|"routes commands"| node_status_automation
node_command_dispatch -->|"routes commands"| node_configuration_commands
node_configuration_commands -->|"updates settings"| node_runtime_settings
node_server_wide -->|"manages server"| node_discord_service
node_resource_management -->|"manages resources"| node_discord_service
node_mass_creation -->|"creates resources"| node_discord_service
node_member_controls -->|"manages members"| node_discord_service
node_status_automation -->|"updates presence"| node_discord_service
node_server_wide -.->|"uses HTTP"| node_http_requests
node_resource_management -.->|"fetches media"| node_http_requests
node_http_requests -.->|"sends API requests"| node_discord_service
node_command_dispatch -->|"reports outcomes"| node_response_logging
node_response_logging -->|"sends replies"| node_discord_service

click node_bot "https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py"
click node_command_dispatch "https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py"
click node_response_logging "https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py"
click node_server_wide "https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py"
click node_resource_management "https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py"
click node_mass_creation "https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py"
click node_member_controls "https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py"
click node_status_automation "https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py"
click node_configuration_commands "https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py"
click node_runtime_settings "https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py"
click node_http_requests "https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py"

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_bot,node_command_dispatch,node_response_logging,node_operator toneBlue
class node_server_wide,node_resource_management,node_mass_creation,node_member_controls,node_status_automation toneAmber
class node_configuration_commands,node_runtime_settings toneMint
class node_discord_service,node_http_requests toneRose
```

## Components

### Command interaction

- [Discord bot](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py): `c-realV2.py`
- [Command dispatch](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py): `c-realV2.py`
- [Replies and logs](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py): `c-realV2.py`

### Server operations

- [Server-wide actions](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py): `c-realV2.py`
- [Resource management](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py): `c-realV2.py`
- [Bulk creation](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py): `c-realV2.py`
- [Member controls](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py): `c-realV2.py`
- [Status automation](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py): `c-realV2.py`

### Configuration

- [Configuration commands](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py): `c-realV2.py`
- [Runtime settings](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py): `c-realV2.py`

### Platform integrations

- **Discord platform**
- [HTTP requests](https://github.com/tkperson/nuking-discord-server-bot-nuke-bot/blob/master/c-realV2.py): `c-realV2.py`

### Other components

- **Authorized user**

## Connections

- Authorized user → Discord bot: sends commands
- Discord bot → Command dispatch: dispatches
- Command dispatch → Server-wide actions: routes commands
- Command dispatch → Resource management: routes commands
- Command dispatch → Bulk creation: routes commands
- Command dispatch → Member controls: routes commands
- Command dispatch → Status automation: routes commands
- Command dispatch → Configuration commands: routes commands
- Configuration commands → Runtime settings: updates settings
- Server-wide actions → Discord platform: manages server
- Resource management → Discord platform: manages resources
- Bulk creation → Discord platform: creates resources
- Member controls → Discord platform: manages members
- Status automation → Discord platform: updates presence
- Server-wide actions → HTTP requests: uses HTTP
- Resource management → HTTP requests: fetches media
- HTTP requests → Discord platform: sends API requests
- Command dispatch → Replies and logs: reports outcomes
- Replies and logs → Discord platform: sends replies
