mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 08:39:59 +08:00
修复词条关键词"问"前空格问题
This commit is contained in:
@@ -130,8 +130,9 @@ async def _(
|
||||
problem = temp
|
||||
break
|
||||
problem = unescape(problem)
|
||||
index = len((word_scope or "") + "添加词条" + (word_type or "") + problem) + 1
|
||||
event.message[0] = event.message[0].data["text"][index + 1 :].strip()
|
||||
# index = len((word_scope or "") + "添加词条" + (word_type or "") + problem) + 1
|
||||
# event.message[0] = event.message[0].data["text"][index + 1 :].strip()
|
||||
event.message[0] = event.message[0].data["text"].split('答', maxsplit=1)[-1].strip()
|
||||
state["word_scope"] = word_scope
|
||||
state["word_type"] = word_type
|
||||
state["problem"] = problem
|
||||
|
||||
Reference in New Issue
Block a user