diff --git a/tradebot.facti13.external.py b/tradebot.facti13.external.py index 31569e5..7fde57b 100644 --- a/tradebot.facti13.external.py +++ b/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: