mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
🐛 Fix avatar_list
command matching
Signed-off-by: Karako <karakohear@gmail.com>
This commit is contained in:
parent
c83406e996
commit
ff0f20618b
@ -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})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user