添加了查询 B 站动漫的命令,修复一些细节的 bug

This commit is contained in:
Richard Chien
2017-02-23 17:32:24 +08:00
parent 6e1ac79024
commit f1fdb34fba
7 changed files with 239 additions and 12 deletions

View File

@ -24,6 +24,5 @@ def _processor(sentence, segmentation):
lang, query = m.group('lang'), m.group('query')
break
if lang and query:
print('翻译: 目标语言:', lang, ', 待翻译文本:', query)
return 90, 'translate.translate_to', ' '.join((lang.strip(), query.strip(' ,'))), None
return None