16 lines
296 B
Python
16 lines
296 B
Python
from pathlib import Path
|
|
|
|
import nonebot
|
|
from nonebot import get_driver
|
|
|
|
from .config import Config
|
|
|
|
global_config = get_driver().config
|
|
config = Config.parse_obj(global_config)
|
|
|
|
_sub_plugins = set()
|
|
_sub_plugins |= nonebot.load_plugins(
|
|
str((Path(__file__).parent / "plugins").resolve())
|
|
)
|
|
|