mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-12-16 13:40:53 +08:00
fix(guess_voice): 修复了获取角色语音时,如用户指定语言(原神语音 日 七七),截取到的角色名( 七七)未排除空格分隔符的问题。
This commit is contained in:
parent
5e20290f8c
commit
8cde28afb0
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user