mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-25 09:37:30 +00:00
🐛 Fix avatar_list
Signed-off-by: Karako <karakohear@gmail.com>
This commit is contained in:
parent
ff0f20618b
commit
4e6b16d2ae
@ -189,8 +189,7 @@ class AvatarListPlugin(Plugin):
|
||||
async def avatar_list(self, update: "Update", context: "ContextTypes.DEFAULT_TYPE"):
|
||||
user = update.effective_user
|
||||
message = update.effective_message
|
||||
args = [i.lower() for i in context.match.groups() if i]
|
||||
all_avatars = "全部" in args or "all" in message.text # 是否发送全部角色
|
||||
all_avatars = "全部" in message.text or "all" in message.text # 是否发送全部角色
|
||||
|
||||
logger.info("用户 %s[%s] [bold]练度统计[/bold]: all=%s", user.full_name, user.id, all_avatars, extra={"markup": True})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user