diff --git a/docs_build/conf.py b/docs_build/conf.py index bb44132d..aeff7689 100644 --- a/docs_build/conf.py +++ b/docs_build/conf.py @@ -70,6 +70,8 @@ html_theme = 'alabaster' # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] +# html_baseurl = '/api/' + # -- Extension configuration ------------------------------------------------- # -- Options for todo extension ---------------------------------------------- diff --git a/nonebot/adapters/coolq.py b/nonebot/adapters/cqhttp.py similarity index 100% rename from nonebot/adapters/coolq.py rename to nonebot/adapters/cqhttp.py diff --git a/nonebot/drivers/fastapi.py b/nonebot/drivers/fastapi.py index 32ab8693..a2774d8d 100644 --- a/nonebot/drivers/fastapi.py +++ b/nonebot/drivers/fastapi.py @@ -14,7 +14,7 @@ from fastapi import Body, FastAPI, WebSocket as FastAPIWebSocket from nonebot.log import logger from nonebot.config import Config from nonebot.drivers import BaseDriver, BaseWebSocket -from nonebot.adapters.coolq import Bot as CoolQBot +from nonebot.adapters.cqhttp import Bot as CQBot class Driver(BaseDriver): @@ -94,8 +94,8 @@ class Driver(BaseDriver): "/", auto_error=False)): # TODO: Check authorization logger.debug(f"Received message: {data}") - if adapter == "coolq": - bot = CoolQBot("http", self.config) + if adapter == "cqhttp": + bot = CQBot("http", self.config) await bot.handle_message(data) return {"status": 200, "message": "success"} @@ -116,8 +116,8 @@ class Driver(BaseDriver): continue logger.debug(f"Received message: {data}") - if adapter == "coolq": - bot = CoolQBot("websocket", self.config, websocket=websocket) + if adapter == "cqhttp": + bot = CQBot("websocket", self.config, websocket=websocket) await bot.handle_message(data)