diff --git a/backend_integration.py b/backend_integration.py index abdafcf..2d715b9 100644 --- a/backend_integration.py +++ b/backend_integration.py @@ -1,7 +1,6 @@ import aiohttp, os, sys from colors import * import traceback -from steam import SteamID class BackendClient: up = False @@ -35,23 +34,23 @@ class BackendClient: self.warn = False return self.up - async def vip(self, steamid: SteamID, amount: int, extra: str, unique: str = ""): + async def vip(self, steamid, amount: int, extra: str, unique: str = ""): async with aiohttp.ClientSession(cookies={ "secretkey":self.secret_key}) as session: - async with session.post(self.vip_url + f"?steam={steamid.id64}&amount={int(amount)}&service=steam&extra={extra}&unique={unique}", ssl=False) as response: + async with session.post(self.vip_url + f"?steam={steamid}&amount={int(amount)}&service=qiwi&extra={extra}&unique={unique}", ssl=False) as response: try: result = int(await response.text()) if result == 0: - warning(f"[S64:{steamid.id64}] VIP as not be added, maybe permition already exists") + warning(f"[S64:{steamid}] VIP as not be added, maybe permition already exists") return 99 elif result > 0: - info(f"[S64:{steamid.id64}] VIP has be added!") + info(f"[S64:{steamid}] VIP has be added!") return 100 elif result < 0: - info(f"[S64:{steamid.id64}] VIP has be extends!") + info(f"[S64:{steamid}] VIP has be extends!") return 101 except: - error(f"[S64:{steamid.id64}] Backend returned error") + error(f"[S64:{steamid}] Backend returned error") traceback.print_exc() return False return False