# mybotrun/mybot architecture

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

- Interactive diagram: https://gitdiagram.com/mybotrun/mybot
- Repository: https://github.com/mybotrun/mybot

## Overview

1. This repository is not the full bot implementation; it is a release/documentation bundle for MyBot.run, a free Clash of Clans bot. The actual application code, binaries, and runtime components are referenced by the README but are not present in this tree.

2. The core architectural boundary is between the bot product itself and this repo, which mainly provides release metadata, licensing, and distribution-facing assets. For an architecture diagram, this repo should be treated as the “release/info layer,” not the execution layer.

3. The most important files are the localized `LastVersion_*.txt` documents. These appear to be per-language version notices or changelogs, indicating the project maintains a multilingual support/distribution surface across English, French, German, Italian, Portuguese, Russian, Turkish, Vietnamese, and Chinese variants.

4. `LastVersion.txt` is the canonical version marker in the root, while the language-specific variants suggest the same release information is published in multiple locales. That implies a simple content-management flow: a release is cut, version text is updated, then localized copies are generated for users in different regions.

5. `README.md` describes the product’s operating model: a Windows-based bot that depends on an Android emulator. The runtime architecture therefore spans at least three environment layers: Windows host, emulator, and the Clash of Clans game instance inside the emulator.

6. The README’s installation section identifies hard external dependencies that materially affect runtime architecture: Windows XP/Vista/7/8/8.1/10, Microsoft Visual C++ 2010 Redistributable (x86), .NET Framework 4.5, emulator software, and up-to-date graphics drivers. These are not optional niceties; they are required host/runtime prerequisites.

7. The bot also depends on external libraries and native components that shape its technical boundary. The README calls out OpenCV and ImageSearch for visual recognition, plus proprietary DLLs (`MyBotRunImgLoc.dll`, `MBRfunctions.dll`) that extend functionality. That suggests the bot’s decision-making is heavily image-based and partly implemented through native extensions.

8. Network and notification behavior is hinted at by the inclusion of `curl.exe`, explicitly used for Pushbullet integration. Architecturally, that creates an outbound service dependency from the bot to Pushbullet over HTTP(S), separate from the game control path.

9. Licensing is split across components. The AutoIt codebase is GPLv3, while some bundled third-party libraries are under other licenses or proprietary restrictions. For an architecture diagram, it is worth showing a “core open-source bot” surrounded by licensed binary dependencies.

10. The `MyBot.run Community Support Key.asc` file indicates a signed key or trust artifact used for community support or release verification. That implies a distribution/trust boundary, even though the repo does not expose the signing workflow itself.

11. Operationally, the documentation points users to forum-based workflows for installation, startup, releases, and bug reporting. So support, release communication, and troubleshooting are externalized to the MyBot forum rather than handled inside the repository.

12. In summary, the architecture exposed by this repo is: a Windows-hosted, emulator-driven game bot whose behavior relies on image recognition libraries, native helper DLLs, and outbound notification tooling, with this repository serving as the release/version/documentation surface and multilingual distribution index rather than the implementation source.

Main entry points: [`README.md`](https://github.com/mybotrun/mybot/blob/master/README.md) (README), [`LastVersion.txt`](https://github.com/mybotrun/mybot/blob/master/LastVersion.txt) (Version marker), [`License.txt`](https://github.com/mybotrun/mybot/blob/master/License.txt) (License), [`MyBot.run Community Support Key.asc`](https://github.com/mybotrun/mybot/blob/HEAD/MyBot.run%20Community%20Support%20Key.asc) (Support key)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_repo_surface["Repo surface"]
  node_readme["README<br/>docs<br/>[README.md]"]
  node_version_root["Version marker<br/>release metadata<br/>[LastVersion.txt]"]
  node_localized_versions["Localized versions<br/>release notices"]
  node_license["License<br/>[License.txt]"]
  node_support_key["Support key<br/>trust artifact"]
end

subgraph group_runtime_stack["Runtime stack"]
  node_bot_product["MyBot bot<br/>game bot"]
  node_windows_host["Windows host<br/>host OS"]
  node_emulator["Android emulator<br/>runtime"]
  node_game_instance["Clash of Clans<br/>target app"]
  node_vision_libs["Vision libs<br/>image recognition"]
  node_native_dlls["Native DLLs<br/>extension binaries"]
  node_pushbullet["Pushbullet<br/>notification service"]
  node_curl["curl.exe<br/>http client"]
  node_host_prereqs["Host prereqs<br/>system dependencies"]
end

subgraph group_support_surface["Support surface"]
  node_forum_support(("Forum support<br/>external support"))
end

node_readme -->|"describes"| node_bot_product
node_readme -->|"requires"| node_windows_host
node_readme -->|"requires"| node_emulator
node_readme -->|"lists"| node_host_prereqs
node_readme -->|"depends on"| node_vision_libs
node_readme -->|"extends with"| node_native_dlls
node_readme -->|"bundles"| node_curl
node_curl -->|"calls"| node_pushbullet
node_windows_host -->|"hosts"| node_emulator
node_emulator -->|"runs"| node_game_instance
node_game_instance -->|"controlled by"| node_bot_product
node_vision_libs -->|"supporting logic"| node_bot_product
node_native_dlls -->|"supporting logic"| node_bot_product
node_version_root -->|"siblings"| node_localized_versions
node_version_root -->|"announced via"| node_forum_support
node_localized_versions -->|"published via"| node_forum_support
node_support_key -->|"trusts"| node_forum_support
node_license -->|"licenses"| node_bot_product

click node_readme "https://github.com/mybotrun/mybot/blob/master/README.md"
click node_version_root "https://github.com/mybotrun/mybot/blob/master/LastVersion.txt"
click node_license "https://github.com/mybotrun/mybot/blob/master/License.txt"
click node_support_key "https://github.com/mybotrun/mybot/blob/master/MyBot.run Community Support Key.asc"

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_readme,node_version_root,node_localized_versions,node_license,node_support_key toneBlue
class node_bot_product,node_windows_host,node_emulator,node_game_instance,node_vision_libs,node_native_dlls,node_pushbullet,node_curl,node_host_prereqs toneAmber
class node_forum_support toneMint
```

## Components

### Repo surface

Documentation, release markers, licensing, and trust artifacts in this bundle.

- [README](https://github.com/mybotrun/mybot/blob/master/README.md): docs · Primary product and installation overview for the bundle. · `README.md`
- [Version marker](https://github.com/mybotrun/mybot/blob/master/LastVersion.txt): release metadata · Canonical release pointer for the current bundle. · `LastVersion.txt`
- **Localized versions**: release notices · Multilingual version and changelog copies for regional distribution.
- [License](https://github.com/mybotrun/mybot/blob/master/License.txt): license · Repository-level licensing statement. · `License.txt`
- [Support key](https://github.com/mybotrun/mybot/blob/HEAD/MyBot.run%20Community%20Support%20Key.asc): trust artifact · Signed community support or verification artifact. · `MyBot.run Community Support Key.asc`

### Runtime stack

External environment and components required by the bot product.

- **MyBot bot**: game bot · External application boundary referenced by this repository.
- **Windows host**: host OS · Required desktop operating system for execution.
- **Android emulator**: runtime · Mobile environment used to run the game instance.
- **Clash of Clans**: target app · Game instance controlled inside the emulator.
- **Vision libs**: image recognition · OpenCV and ImageSearch-based visual detection layer.
- **Native DLLs**: extension binaries · Proprietary helper libraries that extend bot behavior.
- **Pushbullet**: notification service · Outbound notification endpoint reached through curl.
- **curl.exe**: http client · Bundled command-line client used for Pushbullet requests.
- **Host prereqs**: system dependencies · VC++ 2010 x86, .NET 4.5, and graphics driver requirements.

### Support surface

Forum-based release, installation, and troubleshooting workflow.

- **Forum support**: external support · External channel for installation, releases, and bug reporting.

## Connections

- README → MyBot bot: describes · Documents the product boundary and operating model.
- README → Windows host: requires · States Windows as the host environment.
- README → Android emulator: requires · Bot depends on an Android emulator.
- README → Host prereqs: lists · Calls out required runtime prerequisites.
- README → Vision libs: depends on · References visual recognition libraries.
- README → Native DLLs: extends with · Mentions proprietary helper DLLs.
- README → curl.exe: bundles · Includes curl for notification integration.
- curl.exe → Pushbullet: calls · Used for outbound Pushbullet integration.
- Windows host → Android emulator: hosts · The emulator runs on the Windows desktop host.
- Android emulator → Clash of Clans: runs · Game executes inside the emulator.
- Clash of Clans → MyBot bot: controlled by · The bot operates against the game instance.
- Vision libs → MyBot bot: supporting logic · Image-based recognition informs decisions.
- Native DLLs → MyBot bot: supporting logic · Native extensions provide specialized functionality.
- Version marker → Localized versions: siblings · Canonical version marker mirrored across locales.
- Version marker → Forum support: announced via · Release communication is externalized to forums.
- Localized versions → Forum support: published via · Localized release notes are distributed to users.
- Support key → Forum support: trusts · Suggests a community verification or support workflow.
- License → MyBot bot: licenses · Defines repository licensing boundaries.
