BgStats Companion mvpoftheleague
Use this command to install BgStats Companion:
winget install --id=mvpoftheleague.BgStatsCompanion -e Windows system tray companion app for BgStats WoW Classic battleground statistics tracker
winget install --id=mvpoftheleague.BgStatsCompanion -e Windows system tray companion app for BgStats WoW Classic battleground statistics tracker
A lightweight Windows tray application that watches your WoW Classic Era SavedVariables and automatically uploads battleground match data to bgstats.cc.
SavedVariables/BgStats.luabuild.bat
The build script will:
assets/logo.ico from assets/logo.pngdist/BgStatsCompanion.exe> Dependencies: The script uses rsrc to embed the Windows manifest and icon. It will be installed automatically via go install if not found.
Run BgStatsCompanion.exe. On first launch it will:
%APPDATA%\BgStats Companion\ and add a startup entry_classic_era_ folderAfter saving settings the addon is installed and the companion starts watching for new matches in the background. It runs silently in the system tray.
| Action | Description |
|---|---|
| Left-click | Open settings |
| Settings | Open the settings window |
| Open Config Folder | Open %APPDATA%\BgStats Companion\ in Explorer |
| Open bgstats.cc | Open the website |
| Exit | Quit the companion |
Settings are stored in %APPDATA%\BgStats Companion\config.json:
| Field | Description |
|---|---|
apiKey | Auto-generated on first launch |
wowClassicDir | Path to your _classic_era_ folder |
backendUrl | API endpoint (default: https://bgstats.cc) |
pollIntervalSeconds | How often to check for new matches (default: 30) |
| File | Description |
|---|---|
main.go | Entry point, first-run setup, autostart |
tray.go | System tray icon and context menu |
settings.go | Settings window UI |
watcher.go | File polling loop |
uploader.go | HTTP client for the bgstats.cc API |
lua.go | SavedVariables parser and match types |
installer.go | WoW directory detection, addon install, autostart registry |
ipc.go | Single-instance enforcement via named Win32 mutex |
dialog.go | Windows folder picker dialog |
config.go | Config load/save |
embed.go | Embedded addon and icon assets |
icon.go | Tray icon loader |
activity.go | In-memory activity log shown in the settings window |
MIT