mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 03:55:26 +00:00
🐛 Fix light_cone rank
This commit is contained in:
parent
df542a1e74
commit
a8654ae325
@ -72,7 +72,7 @@ class AvatarListPlugin(Plugin):
|
|||||||
|
|
||||||
def get_light_cone_star(self, name: str) -> int:
|
def get_light_cone_star(self, name: str) -> int:
|
||||||
light_cone = self.wiki_service.light_cone.get_by_name(name)
|
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]:
|
async def get_final_data(self, characters: List[StarRailDetailCharacter]) -> List[AvatarData]:
|
||||||
data = []
|
data = []
|
||||||
|
@ -26,7 +26,7 @@ class AvatarsPlugin(Plugin):
|
|||||||
self.wiki_service = wiki_service
|
self.wiki_service = wiki_service
|
||||||
self.search_service = search_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)
|
@handler.message(filters=filters.Regex("^角色图鉴查询(.*)"), block=False)
|
||||||
async def command_start(self, update: Update, context: CallbackContext) -> None:
|
async def command_start(self, update: Update, context: CallbackContext) -> None:
|
||||||
message = update.effective_message
|
message = update.effective_message
|
||||||
|
Loading…
Reference in New Issue
Block a user