mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-25 01:25:04 +08:00
13 lines
299 B
Python
13 lines
299 B
Python
|
import jieba
|
||
|
|
||
|
from command import CommandRegistry
|
||
|
|
||
|
__registry__ = cr = CommandRegistry()
|
||
|
|
||
|
|
||
|
@cr.register('process')
|
||
|
@cr.restrict(full_command_only=True)
|
||
|
def process(args_text, ctx_msg, internal=False):
|
||
|
print('自然语言消息处理', args_text)
|
||
|
print(list(jieba.cut_for_search(args_text)))
|