mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-05 03:39:59 +08:00
🚨 auto fix by pre-commit hooks
This commit is contained in:
@@ -63,10 +63,7 @@ class ApiDataSource:
|
||||
else:
|
||||
nickname = bot.self_id
|
||||
ava_url: str = (
|
||||
await PlatformUtils.get_user_avatar_url(
|
||||
bot.self_id, platform
|
||||
)
|
||||
or ""
|
||||
await PlatformUtils.get_user_avatar_url(bot.self_id, platform) or ""
|
||||
)
|
||||
bot_info = BotInfo(
|
||||
self_id=bot.self_id, nickname=nickname, ava_url=ava_url, platform=platform
|
||||
|
||||
@@ -81,10 +81,8 @@ class ApiDataSource:
|
||||
bot=bot,
|
||||
self_id=bot.self_id,
|
||||
nickname=login_info["nickname"] if login_info else bot.self_id,
|
||||
ava_url=await PlatformUtils.get_user_avatar_url(
|
||||
bot.self_id, platform
|
||||
)
|
||||
or AVA_URL.format(bot.self_id),
|
||||
ava_url=await PlatformUtils.get_user_avatar_url(bot.self_id, platform)
|
||||
or AVA_URL.format(bot.self_id),
|
||||
)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user