mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-30 22:46:40 +00:00 
			
		
		
		
	📝 update adapter connection guide
This commit is contained in:
		| @@ -16,8 +16,11 @@ nb create | ||||
|  | ||||
| ```python{3,4,7} | ||||
| import nonebot | ||||
| from nonebot.adapters.cqhttp import Bot as CQHTTPBot | ||||
|  | ||||
| nonebot.init() | ||||
| driver = nonebot.get_driver() | ||||
| driver.register_adapter("cqhttp", CQHTTPBot) | ||||
| nonebot.load_builtin_plugins() | ||||
|  | ||||
| if __name__ == "__main__": | ||||
|   | ||||
		Reference in New Issue
	
	Block a user