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

Improved handling of Daily Catch Limit #6142

Merged
merged 3 commits into from
Jul 26, 2017

Conversation

davidakachaos
Copy link
Contributor

@davidakachaos davidakachaos commented Jul 26, 2017

This adds a new way to handle the daily catch limit. It will disable the
catch tasks just like we ran out of balls. It will disable all catch
tasks for an hour, after that it will check if the amount of catches is
lower than the limit and resume catching if so.
During the hour we still check if the amount of Pokemon caught is lower
than the daily limit minus 20, if so the bot will resume catching again,
ending the remaining wait time.
Notice if we enabled "exit_on_limit_reached", the bot will still exit if
the daily limit is reached!!

This adds a new way to handle the daily catch limit. It will disable the
catch tasks just like we ran out of balls. It will disable all catch
tasks for an hour, after that it will check if the amount of catches is
lower than the limit and resume catching if so.
During the hour we still check if the amount of Pokemon caught is lower
than the daily limit minus 20, if so the bot will resume catching again,
ending the remaining wait time.
Notice if we enabled "exit_on_limit_reached", the bot will still exit if
the daily limit is reached!!
@mention-bot
Copy link

@davidakachaos, thanks for your PR! By analyzing the history of the files in this pull request, we identified @Gobberwart and @MerlionRock to be potential reviewers.

@MerlionRock
Copy link
Contributor

MerlionRock commented Jul 26, 2017

👍

Approved with PullApprove

@MerlionRock MerlionRock merged commit bdff815 into PokemonGoF:dev Jul 26, 2017
@davidakachaos davidakachaos deleted the daily_limit_improvement branch August 23, 2017 07:55
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.

4 participants