Versions in this module Expand all Collapse all v0 v0.6.3 Mar 18, 2025 Changes in this version + type Bot struct + func NewBot(ctx *botCtx.Context) *Bot + func (b *Bot) Run(ctx context.Context, firstRun bool, runs []run.Run) error + func (b *Bot) Stop() + type GameStats struct + FinishedAt time.Time + Reason event.FinishReason + Runs []RunStats + StartedAt time.Time + type RunStats struct + FinishedAt time.Time + Items []data.Item + Name string + Reason event.FinishReason + StartedAt time.Time + UsedPotions []event.UsedPotionEvent + type Scheduler struct + func NewScheduler(manager *SupervisorManager, logger *slog.Logger) *Scheduler + func (s *Scheduler) Start() + func (s *Scheduler) Stop() + type SinglePlayerSupervisor struct + func NewSinglePlayerSupervisor(name string, bot *Bot, statsHandler *StatsHandler) (*SinglePlayerSupervisor, error) + func (s *SinglePlayerSupervisor) GetContext() *ct.Context + func (s *SinglePlayerSupervisor) GetData() *game.Data + func (s *SinglePlayerSupervisor) HandleOutOfGameFlow() error + func (s *SinglePlayerSupervisor) Start() error + func (s SinglePlayerSupervisor) KillClient() error + func (s SinglePlayerSupervisor) Name() string + func (s SinglePlayerSupervisor) SetWindowPosition(x, y int) + func (s SinglePlayerSupervisor) Stats() Stats + func (s SinglePlayerSupervisor) Stop() + func (s SinglePlayerSupervisor) TogglePause() + type Stats struct + Details string + Drops []data.Drop + Games []GameStats + StartedAt time.Time + SupervisorStatus SupervisorStatus + func (s Stats) TotalChickens() int + func (s Stats) TotalDeaths() int + func (s Stats) TotalErrors() int + func (s Stats) TotalGames() int + type StatsHandler struct + func NewStatsHandler(name string, logger *slog.Logger) *StatsHandler + func (h *StatsHandler) Handle(_ context.Context, e event.Event) error + func (h *StatsHandler) Stats() Stats + type Supervisor interface + GetContext func() *ct.Context + GetData func() *game.Data + Name func() string + SetWindowPosition func(x, y int) + Start func() error + Stats func() Stats + Stop func() + TogglePause func() + type SupervisorManager struct + func NewSupervisorManager(logger *slog.Logger, eventListener *event.Listener) *SupervisorManager + func (mng *SupervisorManager) AvailableSupervisors() []string + func (mng *SupervisorManager) GetContext(characterName string) *context.Context + func (mng *SupervisorManager) GetData(characterName string) *game.Data + func (mng *SupervisorManager) GetSupervisorStats(supervisor string) Stats + func (mng *SupervisorManager) ReloadConfig() error + func (mng *SupervisorManager) Start(supervisorName string, attachToExisting bool, pidHwnd ...uint32) error + func (mng *SupervisorManager) Status(characterName string) Stats + func (mng *SupervisorManager) Stop(supervisor string) + func (mng *SupervisorManager) StopAll() + func (mng *SupervisorManager) TogglePause(supervisor string) + type SupervisorStatus string + const Crashed + const InGame + const NotStarted + const Paused + const Starting