This commit is contained in:
HibiKier
2023-05-30 20:55:46 +08:00
parent 372aa2c122
commit 83b108f91f
3 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ cx = on_message(priority=9999, block=False, rule=lambda: False)
# 早上好
@scheduler.scheduled_job(
"cron",
hour=6,
minute=1,
hour=20,
minute=44,
)
async def _():
img = image(IMAGE_PATH / "zhenxun" / "zao.jpg")
+1 -3
View File
@@ -24,9 +24,7 @@ async def _(bot: Bot, api: str, data: Dict[str, Any]):
)
if r := re.search(
"^\[\[_task\|(.*)]]",
data["message"].strip()
if isinstance(data["message"], str)
else str(data["message"]["text"]).strip(),
msg,
):
if r.group(1) in group_manager.get_task_data().keys():
task = r.group(1)