# ronnie32/tgoat architecture

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

- Interactive diagram: https://gitdiagram.com/ronnie32/tgoat
- Repository: https://github.com/ronnie32/tgoat

## Overview

TGoat is an OGame-playing bot that combines a game client with automation, controlled through a local web interface and Telegram or Discord. Users configure it with settings; a setup assistant reads account information and proposes settings that require user approval. The bot then performs defense, growth, raiding, and other game activities, while explaining decisions in logs and the interface. The repository tree contains no runtime source files, so component paths are null and the graph reflects only capabilities and relationships documented in the README.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User interfaces"]
  node_web["Web interface"]
  node_messaging["Telegram / Discord"]
end

subgraph group_automation["Game automation"]
  node_bot["TGoat bot"]
  node_client["OGame client"]
  node_defense["Planet defense"]
  node_growth["Account growth"]
  node_autofarm["AutoFarm raids"]
  node_missions["Missions and exploration"]
end

subgraph group_account["Account setup"]
  node_setup["Setup assistant"]
  node_settings["Bot settings"]
end

subgraph group_explanation["Decision feedback"]
  node_logs["Decision logs"]
end

node_user(("Account owner"))
node_game["OGame"]

node_user -->|"opens"| node_web
node_user -->|"controls via"| node_messaging
node_web -->|"controls"| node_bot
node_messaging -->|"controls"| node_bot
node_bot -->|"holds"| node_client
node_client -->|"plays accounts"| node_game
node_bot -->|"runs"| node_defense
node_bot -->|"runs"| node_growth
node_bot -->|"runs"| node_autofarm
node_bot -->|"runs"| node_missions
node_user -->|"starts setup"| node_setup
node_setup -->|"reads account"| node_client
node_setup -->|"proposes"| node_settings
node_user -->|"approves"| node_settings
node_bot -->|"explains decisions"| node_logs
node_logs -->|"shown in"| node_web

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_web,node_messaging toneBlue
class node_bot,node_client,node_defense,node_growth,node_autofarm,node_missions toneAmber
class node_setup,node_settings toneMint
class node_logs toneRose
class node_user,node_game toneIndigo
```

## Components

### User interfaces

- **Web interface**
- **Telegram / Discord**

### Game automation

- **TGoat bot**
- **OGame client**
- **Planet defense**
- **Account growth**
- **AutoFarm raids**
- **Missions and exploration**

### Account setup

- **Setup assistant**
- **Bot settings**

### Decision feedback

- **Decision logs**

### Other components

- **Account owner**
- **OGame**

## Connections

- Account owner → Web interface: opens (evidence: `README.md`)
- Account owner → Telegram / Discord: controls via (evidence: `README.md`)
- Web interface → TGoat bot: controls (evidence: `README.md`)
- Telegram / Discord → TGoat bot: controls (evidence: `README.md`)
- TGoat bot → OGame client: holds (evidence: `README.md`)
- OGame client → OGame: plays accounts (evidence: `README.md`)
- TGoat bot → Planet defense: runs (evidence: `README.md`)
- TGoat bot → Account growth: runs (evidence: `README.md`)
- TGoat bot → AutoFarm raids: runs (evidence: `README.md`)
- TGoat bot → Missions and exploration: runs (evidence: `README.md`)
- Account owner → Setup assistant: starts setup (evidence: `README.md`)
- Setup assistant → OGame client: reads account (evidence: `README.md`)
- Setup assistant → Bot settings: proposes (evidence: `README.md`)
- Account owner → Bot settings: approves (evidence: `README.md`)
- TGoat bot → Decision logs: explains decisions (evidence: `README.md`)
- Decision logs → Web interface: shown in (evidence: `README.md`)
