|
|
|
@ -111,7 +111,10 @@ class SteamClient(SteamPy.Client): |
|
|
|
async with session.get(os.getenv("ALIVE_PUSH") + f'${round(self.latency * 1000)}', ssl = False) as response: |
|
|
|
tmp = await response.text() |
|
|
|
except: |
|
|
|
traceback.print_exc() |
|
|
|
pass |
|
|
|
finally: |
|
|
|
await asyncio.sleep(60); |
|
|
|
|
|
|
|
async def backend_checker(self, timeout=60): |
|
|
|
if self.backend_checker_is_runned: |
|
|
|
@ -123,9 +126,13 @@ class SteamClient(SteamPy.Client): |
|
|
|
info(f"Check backend stats every {timeout} seconds") |
|
|
|
self.backend_checker_enable = True |
|
|
|
while True: |
|
|
|
await self.backend.pulse(True) |
|
|
|
await self.update_prices(True) |
|
|
|
await asyncio.sleep(timeout) |
|
|
|
try: |
|
|
|
await self.backend.pulse(True) |
|
|
|
await self.update_prices(True) |
|
|
|
await asyncio.sleep(timeout) |
|
|
|
except: |
|
|
|
traceback.print_exc() |
|
|
|
pass |
|
|
|
|
|
|
|
#Проверка шмота на леквид |
|
|
|
async def on_trade(self, trade: SteamPy.TradeOffer): |
|
|
|
|