Skip to content

Commit

Permalink
Merge pull request #6181 from MerlionRock/HashEndpoint
Browse files Browse the repository at this point in the history
Added optional hash end point
  • Loading branch information
nbq authored Aug 2, 2017
2 parents 82593eb + b20ed34 commit 400292b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pokecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,14 @@ def _json_loader(filename):
help="Username",
default=None
)
add_config(
parser,
load,
short_flag="-hp",
long_flag="--hashendpoint",
help="hashendpoint",
default=None
)
add_config(
parser,
load,
Expand Down
4 changes: 4 additions & 0 deletions pokemongo_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ def __init__(self, db, config):
self.inventory_refresh_threshold = 10
self.inventory_refresh_counter = 0
self.last_inventory_refresh = time.time()

# Allow user to change hash service
if self.config.hashendpoint:
HashServer.endpoint = self.config.hashendpoint

# Catch on/off
self.catch_disabled = False
Expand Down

0 comments on commit 400292b

Please sign in to comment.