mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update word_handle.py
This commit is contained in:
parent
1e57ddb9ee
commit
cc2645aa9d
@ -117,10 +117,11 @@ 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' and 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':
|
||||
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())
|
||||
temp = ''
|
||||
for g in _problem:
|
||||
if isinstance(g, str):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user