mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
first_commit .gitignore
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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('目前没有更新信息哦')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user