nonebot2/none/natural_language.py

23 lines
423 B
Python
Raw Normal View History

2018-07-01 11:01:24 +08:00
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