Skip to content

what is the approach to make class inherited csgo client #58

@oussamadz

Description

@oussamadz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions