diff --git a/nonebot/adapters/satori/adapter.py b/nonebot/adapters/satori/adapter.py index 4d165a4..a6be1b4 100644 --- a/nonebot/adapters/satori/adapter.py +++ b/nonebot/adapters/satori/adapter.py @@ -287,7 +287,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.self_id} calling API {api}") + log("DEBUG", f"Bot {bot.identity} calling API {api}") api_handler: Optional[API] = getattr(bot.__class__, api, None) if api_handler is None: raise ApiNotAvailable(api) diff --git a/nonebot/adapters/satori/bot.py b/nonebot/adapters/satori/bot.py index 820a371..44410af 100644 --- a/nonebot/adapters/satori/bot.py +++ b/nonebot/adapters/satori/bot.py @@ -184,7 +184,7 @@ def ready(self) -> bool: def self_info(self) -> User: """Bot 自身信息,仅当 Bot 连接鉴权完成后可用""" if self._self_info.user is None: - raise RuntimeError(f"Bot {self.self_id} of {self.platform} is not connected!") + raise RuntimeError(f"Bot {self._self_id} of {self.platform} is not connected!") return self._self_info.user def _update(self, login: LoginType) -> None: