Skip to content

Commit

Permalink
Update mainfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iceteacandy committed Jan 30, 2021
1 parent f47f32b commit 0e1dd6e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mainfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ def print_hl(scheduler):
type_send(config.hl_answer)
scheduler.run_after(print_hl, cd.hl_cooldown)

def print_dep(scheduler):
type_send("pls dep all")
scheduler.run_after(print_dep, cd.dep_cooldown)

class Scheduler:
def __init__(self):
self.ready = []
Expand Down Expand Up @@ -104,4 +108,8 @@ def run_until_complete(self):
s.run_soon(print_slots)
if config.hl:
s.run_soon(print_hl)
s.run_until_complete()
if config.dep:
s.run_soon(print_dep)
s.run_until_complete()

#use async in future

0 comments on commit 0e1dd6e

Please sign in to comment.