add http api

This commit is contained in:
yanyongyu
2020-08-01 22:03:40 +08:00
parent a39c2e223a
commit b3f82f3f22
6 changed files with 70 additions and 14 deletions

View File

@ -11,7 +11,12 @@ from nonebot.config import Config
class BaseBot(abc.ABC):
@abc.abstractmethod
def __init__(self, type: str, config: Config, *, websocket=None):
def __init__(self,
type: str,
config: Config,
self_id: int,
*,
websocket=None):
raise NotImplementedError
@abc.abstractmethod