1
0
forked from bot/app

📝 NapCat.Onebot 显示头像

This commit is contained in:
Expliyh 2024-05-17 17:48:37 +08:00
parent 6509b293db
commit c914ddc0ee
No known key found for this signature in database
GPG Key ID: F30DE0CFF6157916

View File

@ -170,7 +170,7 @@ async def get_bots_data(self_id: str = "0") -> dict:
statistics = status.get("stat", {})
app_name = version_info.get("app_name", "UnknownImplementation")
if app_name in ["Lagrange.OneBot", "LLOneBot", "Shamrock"]:
if app_name in ["Lagrange.OneBot", "LLOneBot", "Shamrock", "NapCat.Onebot"]:
icon = f"https://q.qlogo.cn/g?b=qq&nk={bot_id}&s=640"
elif isinstance(bot, satori.Bot):
app_name = "Satori"