Create NoneBot class inheriting CQHttp

This commit is contained in:
Richard Chien
2018-07-04 09:28:31 +08:00
parent 2a2a7a2ae3
commit 030a31e63f
8 changed files with 44 additions and 36 deletions

View File

@ -1,14 +1,13 @@
from typing import Union, Callable, Dict, Any, List, Sequence
from aiocqhttp import CQHttp
from . import NoneBot
from .helpers import send, send_expr
class BaseSession:
__slots__ = ('bot', 'ctx')
def __init__(self, bot: CQHttp, ctx: Dict[str, Any]):
def __init__(self, bot: NoneBot, ctx: Dict[str, Any]):
self.bot = bot
self.ctx = ctx