添加 random 系列命令,对命令起始符为空的情况进行用户友好处理

This commit is contained in:
Richard Chien
2017-02-18 18:58:24 +08:00
parent 21c27ea6c5
commit 6e1ac79024
7 changed files with 110 additions and 15 deletions

View File

@ -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