Skip to content

Commit f4ce37c

Browse files
authored
fix: 修复 OneBot 适配器中的拼写错误 (#112)
1 parent c5f546e commit f4ce37c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/alicebot-adapter-onebot/alicebot/adapter/onebot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ async def handle_onebot_event(self, msg: Dict[str, Any]) -> None:
201201
if onebot_event.detail_type == "connect":
202202
assert isinstance(onebot_event, ConnectMetaEvent)
203203
logger.info(
204-
"WebSocket connection from CQHTTP Bot accepted!",
204+
"WebSocket connection from OneBot accepted!",
205205
id=msg.get("self_id"),
206206
)
207207
elif onebot_event.detail_type == "heartbeat":

packages/alicebot-adapter-onebot/alicebot/adapter/onebot/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class Config(ConfigModel):
2020
access_token: 鉴权。
2121
"""
2222

23-
__config_name__ = "cqhttp"
23+
__config_name__ = "onebot"
2424
adapter_type: Literal["ws", "reverse-ws", "ws-reverse"] = "reverse-ws"
2525
host: str = "127.0.0.1"
2626
port: int = 8080
27-
url: str = "/cqhttp/ws"
27+
url: str = "/onebot/ws"
2828
reconnect_interval: int = 3
2929
api_timeout: int = 1000
3030
access_token: str = ""

packages/alicebot-adapter-onebot/alicebot/adapter/onebot/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _get_literal_field(field: Optional[FieldInfo]) -> Optional[str]:
7171

7272

7373
class OntBotEvent(Event["OneBotAdapter"]):
74-
"""CQHTTP 事件基类"""
74+
"""OneBot 事件基类"""
7575

7676
id: str
7777
time: float

0 commit comments

Comments
 (0)