gsd 1 year ago
parent
commit
83aa55db0b
  1. 4
      tradebot.facti13.external.py

4
tradebot.facti13.external.py

@ -114,7 +114,7 @@ class SteamClient(SteamPy.Client):
warning(f"[{trade.id}] trade from me, ignoring")
return
if trade.state != SteamPy.enums.TradeOfferState.Active:
if trade.state != SteamPy.TradeOfferState.Active:
error(f"[{trade.id}] trade have not active stats")
await trade.decline()
return
@ -212,7 +212,7 @@ if __name__ == "__main__":
parser.add_argument("--steam-secret", type=str, default=os.environ.get("STEAM_SECRET", ""))
args = parser.parse_args()
client = SteamClient(app = SteamPy.App(id=440), intents = SteamPy.Intents.Safe)
client = SteamClient(app = SteamPy.App(id=440), intents = SteamPy.Intents.Safe, state = SteamPy.PersonaState.Online)
client.backend = backend
if args.auth_file and args.steam_secret:

Loading…
Cancel
Save