# punity122333/hypixelskyblockbot architecture

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

- Interactive diagram: https://gitdiagram.com/punity122333/hypixelskyblockbot
- Repository: https://github.com/punity122333/hypixelskyblockbot

## Overview

Hypixel SkyBlock Bot is a Discord game simulation: players use commands and interactive menus to gather, fight, progress, trade, and collaborate, with persistent player state and a simulated economy. The graph follows the documented bot setup into command handling, domain systems, and SQLite-backed data; it also preserves major README capabilities whose individual handlers were not sampled. Some feature connections therefore rely on README documentation rather than inspected call sites; unsampled implementation details are not inferred.

Main entry points: [`cogs/commands`](https://github.com/punity122333/hypixelskyblockbot/tree/main/cogs/commands) (Game commands), [`main.py`](https://github.com/punity122333/hypixelskyblockbot/blob/main/main.py) (Bot runtime), [`components/buttons/dungeon_buttons.py`](https://github.com/punity122333/hypixelskyblockbot/blob/main/components/buttons/dungeon_buttons.py) (Dungeon controls), [`components/views`](https://github.com/punity122333/hypixelskyblockbot/tree/main/components/views) (Interactive menus)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry_ui["Discord Interface"]
  node_bot["Bot runtime<br/>[main.py]"]
  node_commands["Game commands"]
  node_interactive["Interactive menus"]
  node_combat_ui["Combat controls<br/>[combat_buttons.py]"]
  node_dungeon_ui["Dungeon controls<br/>[dungeon_buttons.py]"]
  node_combat_view["Dungeon combat view"]
  node_puzzle_view["Dungeon puzzle view<br/>[puzzle_view.py]"]
end

subgraph group_gameplay["Game Systems"]
  node_combat["Combat mechanics<br/>[combat_system.py]"]
  node_gathering["Gathering mechanics"]
  node_progression["Skills and progression"]
  node_achievements["Achievements and badges"]
end

subgraph group_economy["Economy and Social"]
  node_party["Party coordination<br/>[party_system.py]"]
  node_market["Market simulation<br/>[market_system.py]"]
  node_market_graphs["Market analytics"]
end

subgraph group_data_layer["Data and Content"]
  node_player_manager["Player state manager<br/>[player_manager.py]"]
  node_database[("SQLite game database<br/>[stubs.py]")]
  node_item_data["Item catalog<br/>[all_items.py]"]
  node_loot_data["Dungeon loot tables<br/>[loot_tables.py]"]
  node_stats["Stat calculator<br/>[stat_calculator.py]"]
end

node_player(("Discord player"))

node_player -->|"uses bot"| node_bot
node_bot -->|"initializes"| node_database
node_bot -->|"creates manager"| node_player_manager
node_bot -->|"initializes"| node_market
node_bot -->|"loads cogs"| node_commands
node_player -->|"invokes"| node_commands
node_commands -->|"offers menus"| node_interactive
node_player -->|"interacts"| node_interactive
node_interactive -.->|"supports combat"| node_combat_ui
node_interactive -.->|"supports dungeons"| node_dungeon_ui
node_dungeon_ui -->|"opens puzzles"| node_puzzle_view
node_dungeon_ui -.->|"starts combat"| node_combat_view
node_combat_ui -->|"uses mechanics"| node_combat
node_combat_view -->|"calculates damage"| node_combat
node_combat_view -->|"calculates stats"| node_stats
node_dungeon_ui -->|"calculates stats"| node_stats
node_dungeon_ui -->|"reads loot"| node_loot_data
node_interactive -.->|"supports gathering"| node_gathering
node_gathering -.->|"updates progress"| node_database
node_commands -.->|"supports skills"| node_progression
node_commands -.->|"supports achievements"| node_achievements
node_commands -.->|"supports parties"| node_party
node_commands -.->|"supports trading"| node_market
node_market -->|"reads and writes"| node_database
node_market -->|"loads catalog"| node_item_data
node_market -->|"logs prices"| node_market_graphs
node_player_manager -->|"reads and updates"| node_database
node_combat_ui -->|"checks milestones"| node_achievements
node_database -->|"exposes methods"| node_achievements

click node_bot "https://github.com/punity122333/hypixelskyblockbot/blob/main/main.py"
click node_commands "https://github.com/punity122333/hypixelskyblockbot/tree/main/cogs/commands"
click node_interactive "https://github.com/punity122333/hypixelskyblockbot/tree/main/components/views"
click node_combat_ui "https://github.com/punity122333/hypixelskyblockbot/blob/main/components/buttons/combat_buttons.py"
click node_dungeon_ui "https://github.com/punity122333/hypixelskyblockbot/blob/main/components/buttons/dungeon_buttons.py"
click node_combat_view "https://github.com/punity122333/hypixelskyblockbot/blob/main/components/views/dungeon_combat_view.py"
click node_puzzle_view "https://github.com/punity122333/hypixelskyblockbot/blob/main/components/views/puzzle_view.py"
click node_combat "https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/combat_system.py"
click node_gathering "https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/gathering_system.py"
click node_progression "https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/progression_system.py"
click node_achievements "https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/achievement_system.py"
click node_party "https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/party_system.py"
click node_market "https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/market_system.py"
click node_market_graphs "https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/market_graphing_system.py"
click node_player_manager "https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/player_manager.py"
click node_database "https://github.com/punity122333/hypixelskyblockbot/blob/main/database/stubs.py"
click node_item_data "https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/data/all_items.py"
click node_loot_data "https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/data/loot_tables.py"
click node_stats "https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/stat_calculator.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_commands,node_interactive,node_combat_ui,node_dungeon_ui,node_combat_view,node_puzzle_view toneBlue
class node_combat,node_gathering,node_progression,node_achievements toneAmber
class node_party,node_market,node_market_graphs toneMint
class node_player_manager,node_database,node_item_data,node_loot_data,node_stats toneRose
class node_player toneIndigo
```

## Components

### Discord Interface

- [Bot runtime](https://github.com/punity122333/hypixelskyblockbot/blob/main/main.py): `main.py`
- [Game commands](https://github.com/punity122333/hypixelskyblockbot/tree/main/cogs/commands): `cogs/commands`
- [Interactive menus](https://github.com/punity122333/hypixelskyblockbot/tree/main/components/views): `components/views`
- [Combat controls](https://github.com/punity122333/hypixelskyblockbot/blob/main/components/buttons/combat_buttons.py): `components/buttons/combat_buttons.py`
- [Dungeon controls](https://github.com/punity122333/hypixelskyblockbot/blob/main/components/buttons/dungeon_buttons.py): `components/buttons/dungeon_buttons.py`
- [Dungeon combat view](https://github.com/punity122333/hypixelskyblockbot/blob/main/components/views/dungeon_combat_view.py): `components/views/dungeon_combat_view.py`
- [Dungeon puzzle view](https://github.com/punity122333/hypixelskyblockbot/blob/main/components/views/puzzle_view.py): `components/views/puzzle_view.py`

### Game Systems

- [Combat mechanics](https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/combat_system.py): `utils/systems/combat_system.py`
- [Gathering mechanics](https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/gathering_system.py): `utils/systems/gathering_system.py`
- [Skills and progression](https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/progression_system.py): `utils/systems/progression_system.py`
- [Achievements and badges](https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/achievement_system.py): `utils/systems/achievement_system.py`

### Economy and Social

- [Party coordination](https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/party_system.py): `utils/systems/party_system.py`
- [Market simulation](https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/market_system.py): `utils/systems/market_system.py`
- [Market analytics](https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/systems/market_graphing_system.py): `utils/systems/market_graphing_system.py`

### Data and Content

- [Player state manager](https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/player_manager.py): `utils/player_manager.py`
- [SQLite game database](https://github.com/punity122333/hypixelskyblockbot/blob/main/database/stubs.py): `database/stubs.py`
- [Item catalog](https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/data/all_items.py): `utils/data/all_items.py`
- [Dungeon loot tables](https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/data/loot_tables.py): `utils/data/loot_tables.py`
- [Stat calculator](https://github.com/punity122333/hypixelskyblockbot/blob/main/utils/stat_calculator.py): `utils/stat_calculator.py`

### Other components

- **Discord player**

## Connections

- Discord player → Bot runtime: uses bot (evidence: `README.md`)
- Bot runtime → SQLite game database: initializes (evidence: `main.py`)
- Bot runtime → Player state manager: creates manager (evidence: `main.py`)
- Bot runtime → Market simulation: initializes (evidence: `main.py`)
- Bot runtime → Game commands: loads cogs (evidence: `main.py`)
- Discord player → Game commands: invokes (evidence: `README.md`)
- Game commands → Interactive menus: offers menus (evidence: `README.md`)
- Discord player → Interactive menus: interacts (evidence: `README.md`)
- Interactive menus → Combat controls: supports combat
- Interactive menus → Dungeon controls: supports dungeons (evidence: `components/buttons/dungeon_buttons.py`)
- Dungeon controls → Dungeon puzzle view: opens puzzles (evidence: `components/buttons/dungeon_buttons.py`)
- Dungeon controls → Dungeon combat view: starts combat (evidence: `components/buttons/dungeon_buttons.py`)
- Combat controls → Combat mechanics: uses mechanics (evidence: `components/buttons/combat_buttons.py`)
- Dungeon combat view → Combat mechanics: calculates damage (evidence: `components/views/dungeon_combat_view.py`)
- Dungeon combat view → Stat calculator: calculates stats (evidence: `components/views/dungeon_combat_view.py`)
- Dungeon controls → Stat calculator: calculates stats (evidence: `components/buttons/dungeon_buttons.py`)
- Dungeon controls → Dungeon loot tables: reads loot (evidence: `components/buttons/dungeon_buttons.py`)
- Interactive menus → Gathering mechanics: supports gathering (evidence: `components/views/mining_location_view.py`)
- Gathering mechanics → SQLite game database: updates progress
- Game commands → Skills and progression: supports skills
- Game commands → Achievements and badges: supports achievements
- Game commands → Party coordination: supports parties
- Game commands → Market simulation: supports trading
- Market simulation → SQLite game database: reads and writes (evidence: `utils/systems/market_system.py`)
- Market simulation → Item catalog: loads catalog (evidence: `utils/systems/market_system.py`)
- Market simulation → Market analytics: logs prices (evidence: `utils/systems/market_system.py`)
- Player state manager → SQLite game database: reads and updates (evidence: `utils/player_manager.py`)
- Combat controls → Achievements and badges: checks milestones (evidence: `components/buttons/combat_buttons.py`)
- SQLite game database → Achievements and badges: exposes methods
