Skip to content

Commit

Permalink
🐛 修复自身消息未设置 uid 的问题 (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
Well2333 authored May 8, 2024
1 parent fb49a6f commit 1e9102c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_bilichat/base_content_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "nonebot-plugin-bilichat"

version = "5.10.1"
version = "5.10.2"

description = "多种B站链接解析,视频词云,AI总结,你想要的都在 bilichat"
authors = [
Expand Down

0 comments on commit 1e9102c

Please sign in to comment.