mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-31 15:06:42 +00:00 
			
		
		
		
	Restore test_permission.py
This commit is contained in:
		| @@ -11,3 +11,8 @@ test_command = on_startswith("hello", to_me(), permission=SUPERUSER) | |||||||
| @test_command.handle() | @test_command.handle() | ||||||
| async def test_handler(bot: CQHTTPBot): | async def test_handler(bot: CQHTTPBot): | ||||||
|     await test_command.finish("cqhttp hello") |     await test_command.finish("cqhttp hello") | ||||||
|  |  | ||||||
|  |  | ||||||
|  | @test_command.handle() | ||||||
|  | async def test_handler(bot: DingBot): | ||||||
|  |     await test_command.finish("ding hello") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user