Skip to content

Commit

Permalink
Merge pull request #37 from WindowsSov8forUs/main
Browse files Browse the repository at this point in the history
fix: 尝试修复已不存在的 `bot` 属性引用 #36
  • Loading branch information
RF-Tar-Railt authored Dec 26, 2024
2 parents 35e8d4f + 85bd8e3 commit b726f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot/adapters/satori/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def payload_to_event(payload: SatoriEvent) -> Event:

@override
async def _call_api(self, bot: Bot, api: str, **data: Any) -> Any:
log("DEBUG", f"Bot {bot.identity} calling API <y>{api}</y>")
log("DEBUG", f"Bot {bot.platform}:{bot.self_info.id} calling API <y>{api}</y>")
api_handler: Optional[API] = getattr(bot.__class__, api, None)
if api_handler is None:
raise ApiNotAvailable(api)
Expand Down

0 comments on commit b726f8c

Please sign in to comment.