Browse Source

neext

master
gsd 2 months ago
parent
commit
2c8befa2b6
  1. 8
      tradebot.facti13.external.py

8
tradebot.facti13.external.py

@ -149,12 +149,12 @@ class SteamClient(SteamPy.Client):
await trade.decline()
return
if len(trade.items_to_receive) > 50:
if len(trade.receiving) > 50:
warning(f"[{trade.id}] cannot accept trade with more 50 items")
await trade.decline()
return
seconds = self.items.Items2Seconds(trade.items_to_receive)
seconds = self.items.Items2Seconds(trade.receiving)
if seconds == 0:
error(f"[{trade.id}] cannot accept trade not valid items")
await trade.decline()
@ -209,8 +209,8 @@ class SteamClient(SteamPy.Client):
pulse_result = await self.backend.pulse()
if not pulse_result:
warning("Backend not responde, any time try add vip")
extra = f"keys={self.items.mannco_key(trade.items_to_receive)};metal={self.items.pure_metal(trade.items_to_receive)};"
seconds = self.items.Items2Seconds(trade.items_to_receive)
extra = f"keys={self.items.mannco_key(trade.receiving)};metal={self.items.pure_metal(trade.receiving)};"
seconds = self.items.Items2Seconds(trade.receiving)
result = await self.backend.vip(trade.user, seconds, extra, unique=f"steam_{trade.id}")
if result == 99:

Loading…
Cancel
Save