mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-06 03:56:45 +00:00
添加 random 系列命令,对命令起始符为空的情况进行用户友好处理
This commit is contained in:
@ -115,7 +115,6 @@ def translate_to(args_text, ctx_msg):
|
||||
})
|
||||
if resp.status_code == 200:
|
||||
data = resp.json()
|
||||
print(data)
|
||||
if 'trans_result' in data:
|
||||
core.echo('翻译结果(百度翻译):\n' + '\n'.join([x['dst'] for x in data['trans_result']]), ctx_msg)
|
||||
return
|
||||
|
Reference in New Issue
Block a user