🐛 Fix avatar_list command matching

Signed-off-by: Karako <karakohear@gmail.com>
This commit is contained in:
Karako 2023-05-04 22:22:40 +08:00
parent c83406e996
commit ff0f20618b
No known key found for this signature in database
GPG Key ID: 5920831B0095D4A0

View File

@ -189,8 +189,8 @@ class AvatarListPlugin(Plugin):
async def avatar_list(self, update: "Update", context: "ContextTypes.DEFAULT_TYPE"):
user = update.effective_user
message = update.effective_message
all_avatars = "all" in message.text # 是否发送全部角色
args = [i.lower() for i in context.match.groups() if i]
all_avatars = "全部" in args or "all" in message.text # 是否发送全部角色
logger.info("用户 %s[%s] [bold]练度统计[/bold]: all=%s", user.full_name, user.id, all_avatars, extra={"markup": True})