3
0

Support more voice

This commit is contained in:
xtaodada 2022-01-30 00:18:38 +08:00
parent c7d0fee4de
commit 21e821a903
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,8 @@ def get_key_list(data: list, key: str) -> list:
def choice_voice(data: list) -> str:
long_key = ['感兴趣的见闻', '关于神之眼', '生日', '爱好', '讨厌的食物', '想要了解', '有什么想要分享',
'突破的感觉', '喜欢的食物', '烦恼', '角色待机', '角色死亡']
'突破的感觉', '喜欢的食物', '烦恼', '角色待机', '角色死亡', '关于', '初次见面',
'的时候', '早上好', '中午好', '晚上好', '晚安']
data_ = []
for i in data:
for k in long_key:

View File

@ -293,5 +293,5 @@ async def inline_process(client: Client, query: InlineQuery):
switch_pm_parameter="help",
)
await query.answer(data,
switch_pm_text=f'{emoji.KEY} 目前已经索引{chara_count} 个角色',
switch_pm_text=f'{emoji.KEY} 搜索{chara_count} 个角色{len(voice_data.keys())} 条语音',
switch_pm_parameter="help",)