csgo icon indicating copy to clipboard operation
csgo copied to clipboard

what is the approach to make class inherited csgo client

Open oussamadz opened this issue 11 months ago • 1 comments

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.")                          

oussamadz avatar Jul 12 '23 12:07 oussamadz