mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
24 lines
511 B
Python
24 lines
511 B
Python
from nonebot import on_command
|
|
from nonebot.adapters.cqhttp import Bot, Event
|
|
from nonebot.typing import T_State
|
|
from util.init_result import image
|
|
|
|
__plugin_name__ = '更新信息'
|
|
|
|
|
|
update_info = on_command("更新信息", priority=5, block=True)
|
|
|
|
|
|
@update_info.handle()
|
|
async def _(bot: Bot, event: Event, state: T_State):
|
|
img = image('update_info.png')
|
|
if img:
|
|
await update_info.finish(image('update_info.png'))
|
|
else:
|
|
await update_info.finish('目前没有更新信息哦')
|
|
|
|
|
|
|
|
|
|
|