啊
?
This commit is contained in:
parent
bc42df2472
commit
78b24f0689
@ -189,7 +189,7 @@ async def add_message(data: Dict[str, Any]):
|
|||||||
|
|
||||||
evals: str = data.get('message').get('content')[2:]
|
evals: str = data.get('message').get('content')[2:]
|
||||||
try:
|
try:
|
||||||
result = await asyncio.gather(asyncio.to_thread(safe_eval, evals))
|
result = await asyncio.to_thread(safe_eval, evals)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
result = f'{evals}\n超时'
|
result = f'{evals}\n超时'
|
||||||
reply = ReplyMessage(id=data['message']['_id'])
|
reply = ReplyMessage(id=data['message']['_id'])
|
||||||
|
Loading…
Reference in New Issue
Block a user