i would like to launch multiple csgo clients in multi threaded env.
and i'm thinking of making it class based, i tried the following code but got no luck:
class ClientHandle(): client = SteamClient() cs = CSGOClient(client)
def __init__(self, username, password, inspectLink, clientName):
self.username = username
self.password = password
self.clientName = clientName
self.client.login(self.username, self.password)
self.inspectLink = inspectLink
@cs.on("logged_in") def loggedIN(self):
print(f"{self.clientName} Logged in.")
@cs.on("ready") def ready(self): print(f"{self.clientName} Ready.")
i would like to launch multiple csgo clients in multi threaded env.
and i'm thinking of making it class based, i tried the following code but got no luck: