mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 11:26:47 +00:00
kongge fix a bug
This commit is contained in:
parent
c9059a3e3e
commit
42e75c49ca
@ -11,7 +11,7 @@ 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('-'):
|
||||
if context.text.startswith('-') or context.text.startswith('/'):
|
||||
return
|
||||
seg_list = jieba.cut(context.text)
|
||||
seg_txt = ' '.join(seg_list)
|
||||
|
Loading…
Reference in New Issue
Block a user