fix genshin

This commit is contained in:
HibiKier
2021-12-26 22:14:01 +08:00
parent 4a8122829e
commit 5e5168f804
8 changed files with 12 additions and 7 deletions
+1
View File
@@ -209,3 +209,4 @@ class WordBank(db.Model):
if q:
return [(x.answer, x.format.split("<format>")[:-1]) for x in q]
return False
+2
View File
@@ -63,6 +63,8 @@ async def _(bot: Bot, event: GroupMessageEvent, state: T_State):
if not r:
await add_word.finish("未检测到词条问题...")
problem = r.group(1).strip()
if not problem:
await add_word.finish("未检测到词条问题...")
answer = msg.split('答', maxsplit=1)[-1]
if not answer:
await add_word.finish("未检测到词条回答...")