mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
UPDATE
This commit is contained in:
@@ -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