def main_loop(bots, config):
    if "LOGFILE" in config:
        logging.basicConfig(filename=config[
                            "LOGFILE"], level=logging.INFO, format='%(asctime)s %(message)s')
    try:
        for bot in bots:
            bot.init()
        while True:
            for bot in bots:
                # print 'processing', bot
                bot.process()
                relay_ins = bot.collect_relay()
                for xbot in bots:
                    if type(bot) == type(xbot):
                        continue
                    xbot.relay(bot, relay_ins)

            time.sleep(.2)
    except __HOLE__:
        sys.exit(0)
    except:
        logging.exception('OOPS')
dataset/ETHPy150Open youknowone/slairck/slairck.py/main_loop