mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-31 15:06:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			209 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			209 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from nonebot.adapters import Bot, Event
 | |
| 
 | |
| from . import cmd
 | |
| 
 | |
| test_1 = cmd.command("1", aliases={"test"})
 | |
| 
 | |
| 
 | |
| @test_1.handle()
 | |
| async def test1(bot: Bot, event: Event):
 | |
|     await test_1.finish(event.get_message())
 |