Lots of updates

This commit is contained in:
Richard Chien
2018-07-01 11:01:24 +08:00
parent 1835a4c33d
commit a13128f356
9 changed files with 162 additions and 90 deletions

22
none/natural_language.py Normal file
View 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