kongge fix a bug

This commit is contained in:
xtaodada 2021-06-28 13:45:39 +08:00
parent 42e75c49ca
commit 9d06e5ae47
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ except ImportError:
@listener(is_plugin=True, outgoing=True, ignore_edited=True) @listener(is_plugin=True, outgoing=True, ignore_edited=True)
async def kongge(context): async def kongge(context):
if jieba_imported and context.text: if jieba_imported and context.text and not context.via_bot:
if context.text.startswith('-') or context.text.startswith('/'): if context.text.startswith('-') or context.text.startswith('/'):
return return
seg_list = jieba.cut(context.text) seg_list = jieba.cut(context.text)

View File

@ -522,7 +522,7 @@
}, },
{ {
"name": "kongge", "name": "kongge",
"version": "1.02", "version": "1.03",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "4.0 kb", "size": "4.0 kb",