diff --git a/plugins/starrail/avatar_list.py b/plugins/starrail/avatar_list.py index fa76375..d060528 100644 --- a/plugins/starrail/avatar_list.py +++ b/plugins/starrail/avatar_list.py @@ -72,7 +72,7 @@ class AvatarListPlugin(Plugin): def get_light_cone_star(self, name: str) -> int: light_cone = self.wiki_service.light_cone.get_by_name(name) - return light_cone.rarity if light_cone else 3 + return light_cone.rank if light_cone else 3 async def get_final_data(self, characters: List[StarRailDetailCharacter]) -> List[AvatarData]: data = [] diff --git a/plugins/starrail/avatars.py b/plugins/starrail/avatars.py index 23a5cfa..02892bb 100644 --- a/plugins/starrail/avatars.py +++ b/plugins/starrail/avatars.py @@ -26,7 +26,7 @@ class AvatarsPlugin(Plugin): self.wiki_service = wiki_service self.search_service = search_service - @handler.command(command="avatars", block=False) + @handler.command(command="avatar", block=False) @handler.message(filters=filters.Regex("^角色图鉴查询(.*)"), block=False) async def command_start(self, update: Update, context: CallbackContext) -> None: message = update.effective_message