Skip to content
wwbakkerPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotabot

Discord bot that reports Dota 2 stats for a fixed group of players, using the OpenDota API.

Scala 3 + ZIO 2, JDA for Discord, sttp for HTTP, scala-chart for plots.

Setup

Put your Discord bot token (developer portal > application > bot) in:

~/.dotabot/discord_token

Run

sbt run
sbt test

Commands

Mention the bot with one of:

  • winloss, winlossplot — win/loss over the last 14 days
  • latestmatches — recent match overview
  • favorite hero
  • best <stat> / worst <stat> — hero stats ranked per player
  • friendly team / enemy team — hero winrates as ally / opponent
  • plot <stat> — chart of a player stat over matches

Sending an unknown command prints the full list with valid stat names.

Layout

  • discord/ — bot entrypoint (App), JDA wiring, command parsing
  • services/dota/ — OpenDota API and match/hero repos (cached in local storage)
  • services/dota/statistics/ — the actual stat computations and plots

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages