Skip to content

Commit

Permalink
Merge pull request #53 from ieew/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ieew committed Jan 21, 2023
2 parents b3f7aca + 75ef43e commit e08c4a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nonebot/adapters/mirai2/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def setup(self) -> None:
)
)

if isinstance(self.driver, ForwardDriver) and self.mirai_config.mirai_Forward:
if isinstance(self.driver, ForwardDriver) and self.mirai_config.mirai_forward:
if not all([
isinstance(self.mirai_config.verify_key, str),
isinstance(self.mirai_config.mirai_host, str),
Expand Down Expand Up @@ -215,4 +215,4 @@ async def _call_api(self, bot: Bot, api: str,
f'{self.get_name()} | {result.get("data") or result}'
)

return result['data']
return result['data']
2 changes: 1 addition & 1 deletion nonebot/adapters/mirai2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Config(BaseModel):
mirai_host: Optional[str] = None
mirai_port: Optional[int] = None
mirai_qq: Optional[List[str]] = None
mirai_Forward: Optional[bool] = True
mirai_forward: Optional[bool] = True
mirai_access_token: Optional[str] = None

class Config:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot_adapter_mirai2"
version = "0.0.21"
version = "0.0.22"
description = "兼容 MiraiApiHttp2.x 的 nonebot2_adapter"
authors = ["ieew <i@ieew.cc>"]
license = "AGPL-3.0"
Expand Down

0 comments on commit e08c4a2

Please sign in to comment.