mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-04 03:10:01 +08:00
refactor code
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
from nonebot import on_command
|
||||
from .data_source import Check
|
||||
from nonebot.adapters.cqhttp import Bot, Event
|
||||
@@ -7,14 +6,16 @@ from nonebot.rule import to_me
|
||||
from nonebot.permission import SUPERUSER
|
||||
|
||||
|
||||
__plugin_name__ = '自我检查 [Hidden]'
|
||||
__plugin_name__ = "自我检查 [Hidden]"
|
||||
|
||||
__plugin_usage__ = '用法:自检'
|
||||
__plugin_usage__ = "用法:自检"
|
||||
|
||||
check = Check()
|
||||
|
||||
|
||||
check_ = on_command('自检', aliases={'check'}, rule=to_me(), permission=SUPERUSER, block=True, priority=1)
|
||||
check_ = on_command(
|
||||
"自检", aliases={"check"}, rule=to_me(), permission=SUPERUSER, block=True, priority=1
|
||||
)
|
||||
|
||||
|
||||
@check_.handle()
|
||||
|
||||
Reference in New Issue
Block a user