fix: 问答为[at + 文本]的情况时无法正常添加

This commit is contained in:
LambdaYH 2022-08-21 22:24:06 +08:00
parent c466603193
commit cf7a64c934

View File

@ -113,8 +113,9 @@ async def _(
if seg.type == 'text' and '' in str(seg):
_problem = event.message[:index]
answer = event.message[index:]
answer[0] = str(answer[0])[str(answer).index('')+1:]
_problem[0] = str(_problem[0])[str(_problem).index('')+1:]
answer[0] = str(answer[0])[str(answer[0]).index('')+1:]
_problem[0] = str(_problem[0])[str(_problem[0]).index('')+1:]
_problem.append(seg.data['text'][:seg.data['text'].index('')])
temp = ''
for g in _problem:
if isinstance(g, str):