mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
Lots of updates
This commit is contained in:
22
none/natural_language.py
Normal file
22
none/natural_language.py
Normal file
@ -0,0 +1,22 @@
|
||||
from collections import namedtuple
|
||||
from typing import Dict, Any
|
||||
|
||||
from aiocqhttp import CQHttp
|
||||
|
||||
_nl_processors = set()
|
||||
|
||||
|
||||
class NLProcessor:
|
||||
__slots__ = ('func', 'permission', 'only_to_me', 'keywords',
|
||||
'precondition_func')
|
||||
|
||||
|
||||
NLPResult = namedtuple('NLPResult', (
|
||||
'confidence',
|
||||
'cmd_name',
|
||||
'cmd_args',
|
||||
))
|
||||
|
||||
|
||||
async def handle_natural_language(bot: CQHttp, ctx: Dict[str, Any]) -> None:
|
||||
pass
|
Reference in New Issue
Block a user