on_connect()

Client.on_connect()

Decorator for handling connections.

This does the same thing as add_handler() using the ConnectHandler.

Usable by Users Bots