mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-25 03:56:40 +00:00 
			
		
		
		
	Interactive mode done
This commit is contained in:
		| @@ -6,7 +6,8 @@ from none.helpers import send | ||||
| @none.on_command('weather', aliases=('天气',)) | ||||
| async def weather(bot, session: Session): | ||||
|     city = session.require_arg('city', prompt='你想知道哪个城市的天气呢?') | ||||
|     await send(bot, session.ctx, f'你查询了{city}的天气') | ||||
|     other = session.require_arg('other') | ||||
|     await send(bot, session.ctx, f'你查询了{city}的天气,{other}') | ||||
|  | ||||
|  | ||||
| @weather.args_parser | ||||
|   | ||||
		Reference in New Issue
	
	Block a user