mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
Restore test_permission.py
This commit is contained in:
parent
55f1bd1f2d
commit
1bd223eab2
@ -11,3 +11,8 @@ test_command = on_startswith("hello", to_me(), permission=SUPERUSER)
|
||||
@test_command.handle()
|
||||
async def test_handler(bot: CQHTTPBot):
|
||||
await test_command.finish("cqhttp hello")
|
||||
|
||||
|
||||
@test_command.handle()
|
||||
async def test_handler(bot: DingBot):
|
||||
await test_command.finish("ding hello")
|
||||
|
Loading…
Reference in New Issue
Block a user