kongge 停止维护

This commit is contained in:
xtaodada 2021-06-28 13:51:17 +08:00
parent 37840dd9ef
commit 0ee89ac7d4
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 12 additions and 9 deletions

View File

@ -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

View File

@ -526,7 +526,7 @@
"section": "chat",
"maintainer": "xtaodada",
"size": "4.0 kb",
"supported": true,
"supported": false,
"des-short": "打字带空格",
"des": "需要 pypi 前置 jieba 。"
}