Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Changing the Bot to Event-Based #55

Closed
wants to merge 3 commits into from

Conversation

jtdroste
Copy link
Contributor

@jtdroste jtdroste commented Jul 24, 2016

NOTE: Still WIP

Short Description: Complete change of PokemonGoBot to utilize dynamically loaded events.

Changes:

  • Create EventManager / IEventHandler
  • Moved out a bunch of the cell things into handlers

TODO

  • Add autoloading of the pokemongo_bot/handlers/*.py directory
  • Setup the stepper to use events
  • Possibly add bot start / bot shutdown events

@OpenPoGo/maintainers

- Create EventManager / IEventHandler
- Moved out a bunch of the cell things into handlers
from cell_workers.utils import distance
from events import IEventHandler

class CachablePokemonHandler(IEventHandler):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty - I was thinking of cache. Note, this is still heavily WIP - I just wanted to add some progress

@MaxLeiter
Copy link
Contributor

Mind providing a list of what's left to be worked on so other people can contribute? Awesome work so far :)

@jtdroste
Copy link
Contributor Author

@TheSavior can you join our slack and maybe discuss a bit about this?

@TheSavior
Copy link

TheSavior commented Jul 24, 2016

Sorry, didn't realize this was a different bot. I have no feelings about the approach you guys take, but I strongly don't think this is the right approach for the upstream bot. I have laid out the concerns that I have about it here: PokemonGoF/PokemonGo-Bot#706

The approach we want to go in to enable extensibility and configuration is using behavior trees PokemonGoF/PokemonGo-Bot#142

@jtdroste
Copy link
Contributor Author

#67 - closed...

@jtdroste jtdroste closed this Jul 26, 2016
@meyer9 meyer9 deleted the jtdroste/refactor-bot branch July 26, 2016 22:45
@tehp tehp unassigned meyer9 Oct 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants