mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
UPDATE
This commit is contained in:
parent
372aa2c122
commit
83b108f91f
@ -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)
|
||||
|
||||
@ -60,6 +60,11 @@ async def _(event: MessageEvent, reg_group: Tuple[Any, ...] = RegexGroup()):
|
||||
msg_id["message_id"],
|
||||
Config.get_config("coser", "WITHDRAW_COS_MESSAGE"),
|
||||
)
|
||||
logger.info(
|
||||
f"发送cos", "cos", event.user_id, getattr(event, "group_id", None)
|
||||
)
|
||||
except Exception as e:
|
||||
await coser.send("你cos给我看!")
|
||||
logger.error(f"coser 发送了未知错误 {type(e)}:{e}")
|
||||
logger.error(
|
||||
f"coser错误", "cos", event.user_id, getattr(event, "group_id", None), e=e
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user