mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
24 lines
569 B
Python
24 lines
569 B
Python
from nonebot import on_command
|
|
from .data_source import Check
|
|
from nonebot.adapters.cqhttp import Bot, Event
|
|
from nonebot.typing import T_State
|
|
from nonebot.rule import to_me
|
|
from nonebot.permission import SUPERUSER
|
|
|
|
|
|
__plugin_name__ = "自我检查 [Hidden]"
|
|
|
|
__plugin_usage__ = "用法:自检"
|
|
|
|
check = Check()
|
|
|
|
|
|
check_ = on_command(
|
|
"自检", aliases={"check"}, rule=to_me(), permission=SUPERUSER, block=True, priority=1
|
|
)
|
|
|
|
|
|
@check_.handle()
|
|
async def _(bot: Bot, event: Event, state: T_State):
|
|
await check_.send(await check.show())
|