irc.py
def run_bot(bot_class, host, port, nick, channels=None, ssl=None):
    """\
    Convenience function to start a bot on the given network, optionally joining
    some channels
    """
    conn = IRCConnection(host, port, nick, ssl)
    bot_instance = bot_class(conn)

    while 1:
        if not conn.connect():
            break

        channels = channels or []

        for channel in channels:
            conn.join(channel)

        conn.enter_event_loop()
def run_bot(bot_class, host, port, nick, channels=None, ssl=None):
    conn = IRCConnection(host, port, nick, ssl)
    bot_instance = bot_class(conn)

    while 1:
        if not conn.connect():
            break

        channels = channels or []

        for channel in channels:
            conn.join(channel)

        conn.enter_event_loop()
def run_bot ( bot_class , host , port , nick , channels = None , ssl = None ) : conn = IRCConnection ( host , port , nick , ssl ) bot_instance = bot_class ( conn ) while 1 : if not conn . connect ( ) : break channels = channels or [ ] for channel in channels : conn . join ( channel ) conn . enter_event_loop ( )
\
    Convenience function to start a bot on the given network, optionally joining
    some channels
\ Convenience function to start a bot on the given network optionally joining some channels