mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 20:38:51 +00:00
kongge fix a bug
This commit is contained in:
parent
9d06e5ae47
commit
37840dd9ef
@ -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 and not context.via_bot:
|
if jieba_imported and context.text and not context.via_bot and not context.forward:
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user