🏗️ change nonebot project structure

This commit is contained in:
yanyongyu
2021-02-11 17:29:16 +08:00
parent 3cc738c205
commit 31b8a5ff77
47 changed files with 2138 additions and 33 deletions

View File

@ -20,6 +20,17 @@ if TYPE_CHECKING:
from nonebot.config import Config
from nonebot.drivers import Driver, WebSocket
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
del pkg_resources
except ImportError:
import pkgutil
__path__: Iterable[str] = pkgutil.extend_path(__path__, __name__)
del pkgutil
except Exception:
pass
class Bot(abc.ABC):
"""