mirror of
https://github.com/Xtao-Labs/iShotaBot.git
synced 2024-11-16 04:35:55 +00:00
🐛 Fix await
This commit is contained in:
parent
64982e1f2b
commit
0ad23bcfc6
@ -3,7 +3,7 @@ import json
|
||||
from init import request
|
||||
|
||||
|
||||
def guess_str(key):
|
||||
async def guess_str(key):
|
||||
if key == '':
|
||||
return ''
|
||||
text = {'text': key}
|
||||
|
@ -17,8 +17,8 @@ async def guess_command(_: Client, message: Message):
|
||||
else:
|
||||
rep_text = ''
|
||||
if reply := message.reply_to_message:
|
||||
rep_text += guess_str(reply.text)
|
||||
text = guess_str(message.text[7:])
|
||||
rep_text += await guess_str(reply.text)
|
||||
text = await guess_str(message.text[7:])
|
||||
if not rep_text and not text:
|
||||
await msg.edit('没有匹配到拼音首字母缩写')
|
||||
elif not rep_text:
|
||||
|
Loading…
Reference in New Issue
Block a user