mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
Merge pull request #79 from meatjam/nonebot2_voice_bug_fixed
fix(guess_voice): 修复了获取角色语音时,未排除空格分隔符的问题。
This commit is contained in:
commit
21bb1cd029
@ -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…
Reference in New Issue
Block a user