Browse Source

await

master
gsd 2 years ago
parent
commit
7193c5b0f0
  1. 4
      tradebot.facti13.py

4
tradebot.facti13.py

@ -107,12 +107,12 @@ class SteamClient(SteamPy.Client):
await send_msg(trade, "Попытка принять трейд...")
await trade.accept()
#Force on trade accept
asyncio.sleep(3)
await asyncio.sleep(3)
if not trade.id in self.trade_tracker:
self.trade_tracker[trade.id] = 60
while self.trade_tracker[trade.id] > 2:
asyncio.sleep(1)
await asyncio.sleep(1)
self.trade_tracker[trade.id] -= 1
await self.on_trade_accept(trade)
return

Loading…
Cancel
Save