diff --git a/kongge.py b/kongge.py index 92a1db6..2b87e0c 100644 --- a/kongge.py +++ b/kongge.py @@ -11,7 +11,10 @@ except ImportError: @listener(is_plugin=True, outgoing=True, ignore_edited=True) async def kongge(context): if jieba_imported and context.text: + if 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) diff --git a/list.json b/list.json index 2535c52..a451302 100644 --- a/list.json +++ b/list.json @@ -522,7 +522,7 @@ }, { "name": "kongge", - "version": "1.0", + "version": "1.01", "section": "chat", "maintainer": "xtaodada", "size": "4.0 kb",