From 8cde28afb03600d4b016c3c13ebd2620c709adf4 Mon Sep 17 00:00:00 2001 From: meatjam <851404658@qq.com> Date: Mon, 27 Jun 2022 15:30:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(guess=5Fvoice):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BA=86=E8=8E=B7=E5=8F=96=E8=A7=92=E8=89=B2=E8=AF=AD=E9=9F=B3?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=A6=82=E7=94=A8=E6=88=B7=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=EF=BC=88=E5=8E=9F=E7=A5=9E=E8=AF=AD=E9=9F=B3?= =?UTF-8?q?=20=E6=97=A5=20=E4=B8=83=E4=B8=83=EF=BC=89=EF=BC=8C=E6=88=AA?= =?UTF-8?q?=E5=8F=96=E5=88=B0=E7=9A=84=E8=A7=92=E8=89=B2=E5=90=8D=EF=BC=88?= =?UTF-8?q?=20=E4=B8=83=E4=B8=83=EF=BC=89=E6=9C=AA=E6=8E=92=E9=99=A4?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC=E5=88=86=E9=9A=94=E7=AC=A6=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Guess_voice/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Guess_voice/__init__.py b/Guess_voice/__init__.py index 60207d5..26b6e73 100644 --- a/Guess_voice/__init__.py +++ b/Guess_voice/__init__.py @@ -114,6 +114,7 @@ async def get_genshin_voice(bot: Bot, event: Union[GroupMessageEvent, PrivateMes else: language = '中' name = name.replace('中', '') + name = name.strip() await download_voice(bot, event) path = await get_random_voice(name, language) if not path: