fix(guess_voice): 修复了获取角色语音时,如用户指定语言(原神语音 日 七七),截取到的角色名( 七七)未排除空格分隔符的问题。

This commit is contained in:
meatjam 2022-06-27 15:30:00 +08:00
parent 5e20290f8c
commit 8cde28afb0

View File

@ -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: