Skip to content

Commit

Permalink
fixed stats counter?
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgimenez committed May 20, 2024
1 parent 1fd2e46 commit 88d2c90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ not aware of any ban for using it. I'm not responsible for any ban or any other
- Blizzard Sorceress, Nova Sorceress and Hammerdin are currently supported
- Supported runs: Countess, Andariel, Ancient Tunnels, Summoner, Mephisto, Council, Eldritch, Pindleskin, Nihlathak,
Tristram, Lower Kurast, Stony Tomb, The Pit, Arachnid Lair, Baal, Tal Rasha Tombs, Diablo, Cows
- Multi window support (run multiple bots at the same time)
- Bot integration for Discord and Telegram
- "Companion mode" one leader bot will be creating games and the rest of the bots will join the game... and sometimes it
works
Expand Down
2 changes: 1 addition & 1 deletion internal/companion_supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (s *CompanionSupervisor) Start() error {
} else {
s.c.Logger.Debug("Waiting for new game to be created...")
evt := s.c.EventListener.WaitForEvent(ctx)
if gcEvent, ok := evt.(event.GameCreatedEvent); ok {
if gcEvent, ok := evt.(event.GameCreatedEvent); ok && gcEvent.Name != "" {
err = s.c.Manager.JoinOnlineGame(gcEvent.Name, gcEvent.Password)
if err != nil {
s.c.Logger.Error(err.Error())
Expand Down
1 change: 1 addition & 0 deletions internal/single_supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (s *SinglePlayerSupervisor) Start() error {
if config.Characters[s.name].Game.RandomizeRuns {
rand.Shuffle(len(runs), func(i, j int) { runs[i], runs[j] = runs[j], runs[i] })
}
event.Send(event.GameCreated(event.Text(s.name, "New game created"), "", ""))
s.logGameStart(runs)
err = s.bot.Run(ctx, firstRun, runs)
if err != nil {
Expand Down

0 comments on commit 88d2c90

Please sign in to comment.