Skip to content

Commit

Permalink
Merge pull request #5811 from PokemonGoF/dev
Browse files Browse the repository at this point in the history
Dev merge to master
  • Loading branch information
solderzzc authored Nov 13, 2016
2 parents 01928f0 + 71e1f26 commit e599af1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions pokemongo_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def __init__(self, db, config):
self.inventory_refresh_threshold = 10
self.inventory_refresh_counter = 0
self.last_inventory_refresh = time.time()

# Catch on/off
self.catch_disabled = False

Expand Down Expand Up @@ -167,7 +167,7 @@ def _setup_event_system(self):
if self.config.websocket_start_embedded_server:
self.sio_runner = SocketIoRunner(self.config.websocket_server_url)
self.sio_runner.start_listening_async()

websocket_handler = SocketIoHandler(
self,
self.config.websocket_server_url
Expand Down Expand Up @@ -738,11 +738,11 @@ def _register_events(self):
self.event_manager.register_event('sniper_log', parameters=('message', 'message'))
self.event_manager.register_event('sniper_error', parameters=('message', 'message'))
self.event_manager.register_event('sniper_teleporting', parameters=('latitude', 'longitude', 'name'))

# Catch-limiter
self.event_manager.register_event('catch_limit_on')
self.event_manager.register_event('catch_limit_off')


def tick(self):
self.health_record.heartbeat()
Expand Down Expand Up @@ -996,7 +996,7 @@ def get_encryption_lib(self):
full_path = path + '/' + file_name
elif os.path.isfile(path + '/src/pgoapi/pgoapi/lib/' + file_name): # if not found, check pgoapi lib folder
full_path = path + '/src/pgoapi/pgoapi/lib/' + file_name

if full_path == '':
self.logger.error(file_name + ' is not found! Please place it in the bots root directory or set encrypt_location in config.')
sys.exit(1)
Expand Down Expand Up @@ -1026,7 +1026,7 @@ def get_hash_lib(self):
full_path = path + '/'+ file_name
elif os.path.isfile(path + '/src/pgoapi/pgoapi/lib/' + file_name): # if not found, check pgoapi lib folder
full_path = path + '/src/pgoapi/pgoapi/lib/' + file_name

if full_path == '':
self.logger.error(file_name + ' is not found! Please place it in the bots root directory or set encrypt_location in config.')
sys.exit(1)
Expand All @@ -1045,8 +1045,8 @@ def _setup_api(self):
self.login()
# chain subrequests (methods) into one RPC call

self.api.set_signature_lib(self.get_encryption_lib())
self.api.set_hash_lib(self.get_hash_lib())
#self.api.set_signature_lib(self.get_encryption_lib())
#self.api.set_hash_lib(self.get_hash_lib())

self.logger.info('')
# send empty map_cells and then our position
Expand Down Expand Up @@ -1540,4 +1540,3 @@ def _refresh_inventory(self):
inventory.refresh_inventory()
self.last_inventory_refresh = now
self.inventory_refresh_counter += 1

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
numpy==1.11.0
networkx==1.11
-e git+https://github.com/sebastienvercammen/pgoapi.git#egg=pgoapi
-e git+https://github.com/pogodevorg/pgoapi.git#egg=pgoapi
geopy==1.11.0
geographiclib==1.46.3
protobuf==3.0.0b4
Expand Down

0 comments on commit e599af1

Please sign in to comment.