def run_bots(bots):
    """
    Run many bots in parallel.

    :param bots: IRC bots to run.
    :type bots: list
    """
    greenlets = [spawn(bot.run) for bot in bots]
    try:
        joinall(greenlets)
    except KeyboardInterrupt:
        for bot in bots:
            bot.disconnect()
    finally:
        killall(greenlets)
def run_bots ( bots ) : greenlets = [ spawn ( bot . run ) for bot in bots ] try : joinall ( greenlets ) except KeyboardInterrupt : for bot in bots : bot . disconnect ( ) finally : killall ( greenlets )
Run many bots in parallel.

    :param bots: IRC bots to run.
    :type bots: list