Skip to content

About

🧰 Python tools for Dota 2: auto-update hero guide item builds, keep hero grids in order, list every chat emoticon as a gif, and more

Topics

Resources

Stars

20 stars

Watchers

2 watching

Forks

Repository files navigation

🔧 Dota2Utils

🔧 Each folder in this repository is a small utility for Dota 2.

🧰 List of utilities

Script that auto-clicks "Refresh challenges" for Dota Plus hero quests.

Edit custom Hero Grids and align categories as you wish. The hero grids it builds are personal (my preferences, my heroes), but hey, the code is there.

Tip

If you want some meta hero grids - use something like dota2protracker.com/meta-hero-grids, github.com/maybewewill/metagrid, etc.

Import meta item builds from Dota 2 ProTracker right into your Dota 2 Client hero builds.

Note

Uses D2PT's somewhat public API hence it should be fine with their ToS.

Updated fork of ListEmoticons.ipynb notebook by @rossengeorgiev. You can see all the emotes at aluerie.github.io/Dota2Utils/ListEmoticons/

Send messages into your User Feed Profile Widget. Valve removed UI to do it directly in the client, but it's still possible with a script like this.

📦 Setup

The tools are for Windows and need uv. uv installs the right Python (3.15) by itself.

  1. Clone the repository and install everything:

    uv sync --all-packages
  2. If a tool needs settings (ItemBuilds, ListEmoticons, SocialFeed), copy config.example.toml to config.toml and edit it. config.toml is git-ignored.

Your Steam folder, Steam account and Dota 2 install are detected automatically. If detection picks the wrong ones, set them under [steam] in config.toml.

🚀 Usage

After the one-time uv sync --all-packages from the setup above, every tool runs by its name (from anywhere in the repository), see its README for details:

uv run ItemBuilds
Tool Command
DotaPlusQuests uv run DotaPlusQuests
HeroGrids uv run HeroGrids
ItemBuilds uv run ItemBuilds
ListEmoticons uv run ListEmoticons
SocialFeed uv run SocialFeed

🛠️ Development

The repository is a uv workspace: each tool folder is a package, and dota2utils-common holds the code they share (config, Steam paths, Valve's hero/item lists, hero guide files). docs/ is the GitHub Pages site (served from main + /docs); ListEmoticons writes its page and gifs there.

Checks (the same ones CI runs):

uv run ruff check
uv run ruff format --check
uv run ty check
uv run pytest

🤖 Automation

  • CI runs the checks above on every push and PR.
  • Emoticons checks Dota 2 for new emoticons every week and opens a PR with them, which merges by itself once CI passes (with the DEPENDENCIES_TOKEN secret), so new emoticons go live on their own.
  • Dependencies upgrades the locked Python packages every month and opens a PR, with the check results in its description. Dependabot does the same for GitHub Actions. Dependabot's PRs merge by themselves once CI passes. The Python ones do too if the DEPENDENCIES_TOKEN secret is set (see the comment at the top of the workflow); otherwise they wait for you. main requires the CI check; admins can push directly.

About

🧰 Python tools for Dota 2: auto-update hero guide item builds, keep hero grids in order, list every chat emoticon as a gif, and more

Topics

Resources

Stars

20 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages