-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,17 @@ def step(self): | |
cLng = self.initLng + scaledDLng + random_lat_long_delta() | ||
|
||
self.api.set_position(cLat, cLng, 0) | ||
self.bot.event_manager.emit( | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
douglascamata
Author
Member
|
||
'position_update', | ||
sender=self, | ||
level='debug', | ||
data={ | ||
'current_position': (cLat, cLng), | ||
'last_position': (self.initLat, self.initLng), | ||
'distance': '', | ||
'distance_unit': '' | ||
} | ||
) | ||
self.bot.heartbeat() | ||
|
||
sleep(1) # sleep one second plus a random delta | ||
|
No need to spam current position