Skip to content

Commit

Permalink
fix: method
Browse files Browse the repository at this point in the history
  • Loading branch information
fllesser committed Jan 8, 2025
1 parent e48ec8c commit 748020d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nonebot_plugin_fortnite/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ async def _(
name: Match[str]
):
if name.available:
matcher.set_path_args('name', name.result)
matcher.set_path_arg('name', name.result)
return
# 获取群昵称
if not session.member or not session.member.nick:
return
pattern = r'(?:id:|id\s)(.+)'
if match := re.match(pattern, session.member.nick, re.IGNORECASE):
matcher.set_path_args('name', match.group(1))
matcher.set_path_arg('name', match.group(1))


name_prompt = UniMessage.template("{:At(user, $event.get_user_id())} 请发送游戏名称(群昵称设置为id:name/ID name可快速查询)")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot-plugin-fortnite"
version = "0.0.2"
version = "0.0.3"
description = "堡垒之夜插件"
authors = ["fllesser <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 748020d

Please sign in to comment.