mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-13 16:10:05 +08:00
fix genshin
This commit is contained in:
@@ -209,3 +209,4 @@ class WordBank(db.Model):
|
||||
if q:
|
||||
return [(x.answer, x.format.split("<format>")[:-1]) for x in q]
|
||||
return False
|
||||
|
||||
|
||||
@@ -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("未检测到词条回答...")
|
||||
|
||||
Reference in New Issue
Block a user