From 1e9102cbea4371820fc46e74bb184ce7891ba4cb Mon Sep 17 00:00:00 2001 From: Well404 <40534114+Well2333@users.noreply.github.com> Date: Thu, 9 May 2024 00:53:03 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E8=BA=AB?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=9C=AA=E8=AE=BE=E7=BD=AE=20uid=20=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#218)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_bilichat/base_content_parsing.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nonebot_plugin_bilichat/base_content_parsing.py b/nonebot_plugin_bilichat/base_content_parsing.py index 00bbc2b..d8be022 100644 --- a/nonebot_plugin_bilichat/base_content_parsing.py +++ b/nonebot_plugin_bilichat/base_content_parsing.py @@ -54,6 +54,7 @@ def check_cd(uid: int | str, check: bool = True): async def _permission_check(bot: Bot, event: Event, target: MsgTarget, state: T_State): + state["_uid_"] = target.id # 自身消息 _id = target.id if target.private else event.get_user_id() if _id == bot.self_id: @@ -67,7 +68,6 @@ async def _permission_check(bot: Bot, event: Event, target: MsgTarget, state: T_ # 是否 to me if plugin_config.bilichat_only_to_me and not event.is_tome(): return False - state["_uid_"] = target.id return plugin_config.verify_permission(target.id) diff --git a/pyproject.toml b/pyproject.toml index a9c3785..f652031 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "nonebot-plugin-bilichat" -version = "5.10.1" +version = "5.10.2" description = "多种B站链接解析,视频词云,AI总结,你想要的都在 bilichat" authors = [