🐛 Fix light_cone rank

This commit is contained in:
xtaodada 2023-08-29 14:50:37 +08:00
parent df542a1e74
commit a8654ae325
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 2 additions and 2 deletions

View File

@ -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 = []

View File

@ -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