From 2a655ca6da193b63daa84ea6165019a40376493e Mon Sep 17 00:00:00 2001 From: Xtao_dada Date: Sun, 12 Dec 2021 13:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20the=20problem=20that=20s?= =?UTF-8?q?=20to=20command=20cannot=20ignore=20emoji.=20(#155)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 修复 s to 命令无法不指定 emoji 的问题 --- pagermaid/modules/sticker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pagermaid/modules/sticker.py b/pagermaid/modules/sticker.py index d85e32b..cc2d98b 100644 --- a/pagermaid/modules/sticker.py +++ b/pagermaid/modules/sticker.py @@ -267,8 +267,8 @@ async def single_sticker(animated, context, custom_emoji, emoji, message, pic_ro if split_strings[1].isnumeric(): pack = int(split_strings[1]) else: - if split_strings[1].replace("png", "") != "": - emoji = split_strings[1].replace("png", "") + if split_strings[1].replace("png", "").replace("to", "") != "": + emoji = split_strings[1].replace("png", "").replace("to", "") elif package_name: # 批量处理贴纸无法指定emoji,只获取第几个pack # s merge png