def notify_online(event):
    ready = env.ready
    for agent in Team('support').agents:
        agent.tell("%s droned reporting for duty." % config.ROMEO_ENV_NAME)
        if not ready:
            agent.tell("The environment is still being scanned, please wait...")

    def check():
        if env.ready:
            for agent in Team('support').agents:
                agent.tell("The environment is fully scanned and ready.")
            if checker.running:
                checker.stop()

    checker = task.LoopingCall(check)
    checker.start(1.0)
dataset/ETHPy150Open OrbitzWorldwide/droned/droned/lib/droned/events/jabber.py/notify_online/original