Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update
Browse files Browse the repository at this point in the history
fllesser committed Jan 9, 2025
1 parent 37c0b24 commit c192a41
Showing 2 changed files with 4 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
@@ -94,8 +94,8 @@ async def _(arp: Arparma, name: str):

@shop.handle()
async def _():
# await shop.send(await UniMessage(Image(path=shop_file)).export())
await shop.finish('https://www.fortnite.com/item-shop?lang=zh-Hans' + "\n\n" + 'https://fortnite.gg/shop')
await shop.send(await UniMessage(Image(path=shop_file) + Text('https://www.fortnite.com/item-shop?lang=zh-Hans')).export())
# await shop.finish('https://www.fortnite.com/item-shop?lang=zh-Hans' + "\n\n" + 'https://fortnite.gg/shop')

update_shop = on_command('更新商城', permission=SUPERUSER)

3 changes: 2 additions & 1 deletion nonebot_plugin_fortnite/shop.py
Original file line number Diff line number Diff line change
@@ -57,7 +57,8 @@ async def cf_token():

# Create task
async with httpx.AsyncClient() as client:
result = await client.post(url, json=payload, headers=headers).json()
resp = await client.post(url, json=payload, headers=headers)
result = resp.json()
taskId = result.get("taskId")
if not taskId:
# print("Failed to create task:", result)

0 comments on commit c192a41

Please sign in to comment.