mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 08:39:59 +08:00
UPDATE
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user