Skip to content

Commit

Permalink
fix: 修复 OneBot 适配器中的拼写错误 (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenyiw authored Mar 20, 2024
1 parent c5f546e commit f4ce37c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ async def handle_onebot_event(self, msg: Dict[str, Any]) -> None:
if onebot_event.detail_type == "connect":
assert isinstance(onebot_event, ConnectMetaEvent)
logger.info(
"WebSocket connection from CQHTTP Bot accepted!",
"WebSocket connection from OneBot accepted!",
id=msg.get("self_id"),
)
elif onebot_event.detail_type == "heartbeat":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class Config(ConfigModel):
access_token: 鉴权。
"""

__config_name__ = "cqhttp"
__config_name__ = "onebot"
adapter_type: Literal["ws", "reverse-ws", "ws-reverse"] = "reverse-ws"
host: str = "127.0.0.1"
port: int = 8080
url: str = "/cqhttp/ws"
url: str = "/onebot/ws"
reconnect_interval: int = 3
api_timeout: int = 1000
access_token: str = ""
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _get_literal_field(field: Optional[FieldInfo]) -> Optional[str]:


class OntBotEvent(Event["OneBotAdapter"]):
"""CQHTTP 事件基类"""
"""OneBot 事件基类"""

id: str
time: float
Expand Down

0 comments on commit f4ce37c

Please sign in to comment.