Skip to content

About

A lightweight Windows app that displays your Dota 2 hero, K/D/A, game mode, and match time in Discord Rich Presence.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Dota Activity logo

Dota Activity

Lightweight Windows app displaying Dota 2 match status in Discord.

Русский

Download for Windows — latest release
Windows 10/11 · 64-bit

Latest release Windows build Windows x64 MIT license

Examples of Dota Activity on Discord

Illustrative match modes and timers.

What it does

Dota Activity connects Dota 2 to Discord Rich Presence. It picks up game state automatically and shows useful details while you play, then clears your activity when you close the game.

There is no account linking or lobby setup. The app finds your Steam installation, configures Dota's Game State Integration (GSI), and connects to the Discord desktop app.

Before / After

Without Dota Activity With Dota Activity
Discord shows generic "Playing a game" or nothing at all. Discord displays your active Dota 2 hero, K/D/A, game mode, and match duration in real time.
Manual editing of GSI configuration files in Steam folders. Automatic Steam library scanning and GSI configuration setup.

Features

  • Automatic GSI Setup: Finds Steam libraries and configures gamestate_integration_dotapresence.cfg automatically.
  • Discord Rich Presence: Publishes hero, K/D/A, game mode, and match time to Discord RPC.
  • System Tray Integration: Runs in the system tray with minimize and exit options.
  • Windows Autostart: Optional startup integration via the Windows registry Run key.
  • Secure Auto-Updates: Checks GitHub Releases, verifies SHA-256 digests, and includes automatic rollback on startup failure.
  • Language Support: English and Russian localization with settings persistence in %APPDATA%\DotaActivity\settings.json.

Quick start

  1. Download the latest DotaActivity-<version>-Windows-x64.exe from GitHub Releases.
  2. Open the Discord desktop app and run DotaActivity.exe.
  3. Start Dota 2 (restart the game once if it was already open during the initial setup).

Usage

Action / Control Description
Main Window Shows current connection status, game state, and toggle buttons.
Repair GSI Recreates or fixes the local GSI configuration file if game state updates stop.
Check for updates Queries GitHub Releases for newer versions and verifies SHA-256 asset hashes.
Language Switches interface language between English and Russian (persisted locally).
Tray menu / Exit Minimizes to system tray or fully terminates the application.

Configuration

Setting / Parameter Required Description Default / Example
settings.json No Persists language preference and autostart state. %APPDATA%\DotaActivity\settings.json
gamestate_integration_dotapresence.cfg Yes Dota 2 GSI configuration file written to Steam Dota path. Managed automatically by app

How it works

Dota 2 communicates game state events over local HTTP port 38174 via Game State Integration (GSI). app.py runs a lightweight HTTP server receiving these JSON payloads, processes player stats, and synchronizes Rich Presence with Discord through the local RPC client.

flowchart LR
    A[Dota 2 GSI] -->|HTTP 127.0.0.1:38174| B(app.py HTTP Server)
    B -->|Process State| C(Discord RPC Client)
    C -->|Rich Presence| D[Discord Desktop App]
Loading

Project structure

DotaActivity/
├── app.py                  # Main application, HTTP server, GUI, and Discord RPC
├── requirements.txt        # Python package dependencies
├── build.bat               # PyInstaller build script for Windows executable
├── run.bat                 # Convenience script to run app locally
├── version_info.txt        # Windows executable version metadata
├── SECURITY.md / .ru.md    # Security policy and vulnerability reporting
├── LICENSE                 # MIT License
├── assets/                 # Icons, logos, and UI showcase images
└── tests/                  # Unit and integration test suite

Tests and development

To run tests locally from source:

py -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -r requirements.txt
python -m unittest discover -s tests -v

To build the Windows executable:

build.bat

Scope

  • Designed exclusively for Windows 10/11 (64-bit).
  • Does not modify core game binaries or violate Valve / Discord terms of service.
  • Does not store or transmit user telemetry or credentials.

FAQ

Why is my Discord activity missing?

Make sure the Discord desktop app is running, Dota Activity successfully connected to Dota 2 GSI, and (if the game was open during setup) restart Dota 2. You can also click Repair GSI in the app.

Do I need Python installed?

No. If you download the precompiled .exe from GitHub Releases, Python is not required. Python is only needed if building from source.

Why is Medal TV hiding Dota Activity status?

Medal can override Discord Rich Presence. In Medal settings, go to Settings → Privacy & Security → Privacy & Visibility and turn off Promote my Medal profile using Rich Presence.

Contributing and license

Contributions, bug reports, and pull requests are welcome.

The source code is released under the MIT License. Dota 2 and Discord are trademarks of their respective owners. Created by Kolt5ik.

About

A lightweight Windows app that displays your Dota 2 hero, K/D/A, game mode, and match time in Discord Rich Presence.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages