Example #1
0
def run(skp, targets, interval):

    sc = sched.scheduler(time.time, time.sleep)

    for chat in targets:
        utils.loop_event(sc, interval, question, skp, chat)

    sc.run()
Example #2
0
def run(skp, targets, interval):

    sc = sched.scheduler(time.time, time.sleep)

    for url, chat in targets:
        utils.loop_event(sc, interval, check, skp, url, chat, {})

    sc.run()
Example #3
0
def run(skp, tr, settings, interval):

    sc = sched.scheduler(time.time, time.sleep)

    for setting in settings:
        utils.loop_event(sc, interval, check_report, skp, tr, setting, {})

    sc.run()