From c9059a3e3e797c0daa9c117bbceed256dfa42f82 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 28 Jun 2021 13:37:36 +0800 Subject: [PATCH] kongge fix a bug --- kongge.py | 3 +++ list.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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",