Update word_handle.py

This commit is contained in:
Cinte 2022-08-22 12:37:06 +08:00 committed by GitHub
parent cc2645aa9d
commit f7aecf8eed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,11 +117,8 @@ async def _(
answer = event.message[index:]
answer[0] = str(answer[0])[str(answer[0]).index('')+1:]
_problem[0] = str(_problem[0])[str(_problem[0]).index('')+1:]
if _problem[-1].type == 'at':
if seg.data['text'][:seg.data['text'].index('')].lstrip():
_problem.append(seg.data['text'][:seg.data['text'].index('')])
else:
_problem.append(seg.data['text'][:seg.data['text'].index('')].lstrip())
if _problem[-1].type != 'at' or seg.data['text'][:seg.data['text'].index('')].lstrip():
_problem.append(seg.data['text'][:seg.data['text'].index('')])
temp = ''
for g in _problem:
if isinstance(g, str):