Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fllesser committed Jan 9, 2025
1 parent 40fb7b2 commit 7ccc771
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_fortnite/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def _(
matcher.set_path_arg('name', match.group(1))


name_prompt = UniMessage.template("{:At(user, $event.get_user_id())} 请发送游戏名称(群昵称设置为id:name/ID name可快速查询)")
name_prompt = UniMessage.template("{:At(user, $event.get_user_id())} 请发送游戏名称\n注:群昵称设置为:\n id:name\n ID name\n可快速查询)")

@battle_pass.got_path('name', prompt=name_prompt)
async def _(arp: Arparma, name: str):
Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_fortnite/shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async def screenshot_shop_img() -> Path:
try:
browser = await p.chromium.launch(headless=True) # 启动无头模式的 Chromium 浏览器
context = await browser.new_context(
viewport={"width": 1320, "height": 2868}, # 设置为 iPhone 16 Pro Max 分辨率
viewport={"width": 1320},
user_agent="Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15A5341f Safari/604.1"
)
page = await context.new_page()
Expand Down

0 comments on commit 7ccc771

Please sign in to comment.