Skip to content

Commit

Permalink
fix: 查询 ID 出现问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Jan 5, 2025
1 parent f2eae0a commit 7efe476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salty_qq_chat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,9 @@ def qq_command_bind_query(server: PluginServerInterface, event: MessageEvent, co
case "ID":
result = None
if value in bindings.values():
result = [k for k, v in bindings if v == value]
result = [k for k, v in bindings.items() if v == value]

if isinstance(result, List[str]):
if result is not None:
reply(
event,
f"[CQ:at,qq={event.user_id}] 查询到如下结果:\n{'\n'.join(map(str, [f'QQ: {key} 绑定的是 \"{value}\"' for key in result]))}"
Expand Down

0 comments on commit 7efe476

Please sign in to comment.