Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fllesser committed Jan 8, 2025
1 parent b447668 commit 5fcf485
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions nonebot_plugin_fortnite/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from pathlib import Path
from nonebot import require
from nonebot.plugin.on import on_command
from nonebot.permission import SUPERUSER

require("nonebot_plugin_uninfo")
from nonebot_plugin_uninfo import (
Expand All @@ -24,7 +25,8 @@
)
from nonebot_plugin_alconna.uniseg import (
UniMessage,
Image
Image,
Text
)

from .stats import (
Expand Down Expand Up @@ -90,8 +92,16 @@ async def _():

vb = on_command('vb图')



@vb.handle()
async def _():
await vb.finish(await UniMessage(Image(path=file)).export())
await vb.finish(await UniMessage(Image(path=vb_file)).export())

update_vb = on_command('更新vb图', permission=SUPERUSER)

@update_vb.handle()
async def _():
try:
file = await screenshot_vb_img()
await update_vb.send(await UniMessage(Text('更新vb图成功'), Image(path=vb_file)).export())
except Exception as e:
await update_vb.finish(f'更新vb图失败 | {e}')
Binary file removed stats.png
Binary file not shown.

0 comments on commit 5fcf485

Please sign in to comment.