diff --git a/kongge.py b/kongge.py index de5360e..e5e97a7 100644 --- a/kongge.py +++ b/kongge.py @@ -10,11 +10,14 @@ except ImportError: @listener(is_plugin=True, outgoing=True, ignore_edited=True) async def kongge(context): - if jieba_imported and context.text and not context.via_bot and not context.forward: - if context.text.startswith('-') or context.text.startswith('/'): - return - seg_list = jieba.cut(context.text) - seg_txt = ' '.join(seg_list) - seg_txt.replace('@ ', '@') - if not seg_txt == context.text: - await context.edit(seg_txt) + try: + if jieba_imported and context.text and not context.via_bot and not context.forward: + if context.text.startswith('-') or context.text.startswith('/'): + return + seg_list = jieba.cut(context.text) + seg_txt = ' '.join(seg_list) + seg_txt.replace('@ ', '@') + if not seg_txt == context.text: + await context.edit(seg_txt) + except: + pass diff --git a/list.json b/list.json index 7a42ac9..bf0c7f1 100644 --- a/list.json +++ b/list.json @@ -526,7 +526,7 @@ "section": "chat", "maintainer": "xtaodada", "size": "4.0 kb", - "supported": true, + "supported": false, "des-short": "打字带空格", "des": "需要 pypi 前置 jieba 。" }