PSClient class

class psclient.PSClient(connection)

Bases: object

A Pokemon Showdown client

Parameters:connection (PSConnection) – the connection to use to connect the client to PS!
Variables:connection (PSConnection) – the connection to PS!
connect()

Runs the client, logging in and connecting.

Note that this function is blocking: statements after this function is called will not be executed.

However, your program will keep running with the PSConnection.onParsedMessage and onOpenThread attributes.