just fxxx it up
This commit is contained in:
parent
78b24f0689
commit
d5f289887f
@ -188,10 +188,7 @@ async def add_message(data: Dict[str, Any]):
|
||||
elif data.get('message').get('content').startswith('=='):
|
||||
|
||||
evals: str = data.get('message').get('content')[2:]
|
||||
try:
|
||||
result = await asyncio.to_thread(safe_eval, evals)
|
||||
except asyncio.TimeoutError:
|
||||
result = f'{evals}\n超时'
|
||||
result = await safe_eval(evals)
|
||||
reply = ReplyMessage(id=data['message']['_id'])
|
||||
message = Message(content=result,
|
||||
reply_to=reply,
|
||||
|
Loading…
Reference in New Issue
Block a user