Skip to content

Fix Idle/Resume functionality - #232

Open
RandomGuy155 wants to merge 1 commit into
kwsch:masterfrom
RandomGuy155:Idle-ResumeFix
Open

Fix Idle/Resume functionality#232
RandomGuy155 wants to merge 1 commit into
kwsch:masterfrom
RandomGuy155:Idle-ResumeFix

Conversation

@RandomGuy155

@RandomGuy155 RandomGuy155 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Previously, Start() treated a paused bot by forcing a full Stop()/Start() since it couldn't soft-resume. The Main loop then referenced NextRoutineType which was still set to Idle. This adds a real Resume() implementation: RoutineExecutor gets an abstract Resume() method, PokeRoutineExecutorBase implements it via Config.Resume() which correctly references InitialRoutine, and BotSource.Resume() now calls Bot.Resume() and clears IsPaused directly when the bot is paused, instead of falling through to Start()

Closes #227

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Idle Command Turns Lamp Permanently Yellow

1 participant