Declared in module irclib
class SimpleIRCClient: def __init__(self) def _dispatcher(self, c, e) # [Internal] def connect(self, server, port, nickname, password=None, username=None, ircname=None) # Connect/reconnect to a server. def start(self) # Start the IRC client.
This is an example of an object-oriented wrapper of the IRC framework. A real IRC client can be made by subclassing this class and adding appropriate methods.
The method on_join will be called when a "join" event is created (which is done when the server sends a JOIN messsage/command), on_privmsg will be called for "privmsg" events, and so on. The handler methods get two arguments: the connection object (same as self.connection) and the event object.
Connect/reconnect to a server.
![]() |
|