forked from mttu-developers/konabot
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f6fd25a41d |
@ -185,9 +185,18 @@ async def _(msg: UniMsg, mEvt: Event):
|
||||
|
||||
driver = nonebot.get_driver()
|
||||
|
||||
NOTIFIED_FLAG = {
|
||||
"task_added": False,
|
||||
}
|
||||
|
||||
|
||||
@driver.on_bot_connect
|
||||
async def _():
|
||||
if NOTIFIED_FLAG["task_added"]:
|
||||
return
|
||||
|
||||
NOTIFIED_FLAG["task_added"] = True
|
||||
|
||||
await DATA_FILE_LOCK.acquire()
|
||||
tasks = []
|
||||
cfg = load_notify_config()
|
||||
|
||||
Reference in New Issue
Block a user