🐛 Fix avatar_list

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

View File

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