🐛 Fix the problem that s to command cannot ignore emoji. (#155)

🐛 修复 s to 命令无法不指定 emoji 的问题
This commit is contained in:
Xtao_dada 2021-12-12 13:27:03 +08:00 committed by GitHub
parent 20ab1c10d2
commit 2a655ca6da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 <package_name> <number>