mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
fix: 问答为[at + 文本]的情况时无法正常添加
This commit is contained in:
parent
c466603193
commit
cf7a64c934
@ -113,8 +113,9 @@ async def _(
|
|||||||
if seg.type == 'text' and '答' in str(seg):
|
if seg.type == 'text' and '答' in str(seg):
|
||||||
_problem = event.message[:index]
|
_problem = event.message[:index]
|
||||||
answer = event.message[index:]
|
answer = event.message[index:]
|
||||||
answer[0] = str(answer[0])[str(answer).index('答')+1:]
|
answer[0] = str(answer[0])[str(answer[0]).index('答')+1:]
|
||||||
_problem[0] = str(_problem[0])[str(_problem).index('问')+1:]
|
_problem[0] = str(_problem[0])[str(_problem[0]).index('问')+1:]
|
||||||
|
_problem.append(seg.data['text'][:seg.data['text'].index('答')])
|
||||||
temp = ''
|
temp = ''
|
||||||
for g in _problem:
|
for g in _problem:
|
||||||
if isinstance(g, str):
|
if isinstance(g, str):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user