blob: fd166fe82dc1e0f7f635b074904633f94b0d671b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
from time import sleep
import nonebot
from nonebot.adapters.onebot.v11 import Adapter
from .config import RUNTIME_CONFIG, InlineGoCQHTTP
from .database import init_database
__version__ = "YHN-001-A05.fix1"
def asgi():
return nonebot.get_asgi()
def driver():
return nonebot.get_driver()
def init():
nonebot.init(**RUNTIME_CONFIG)
driver().register_adapter(Adapter)
nonebot.load_plugins("ATRI/plugins")
if InlineGoCQHTTP.enabled:
nonebot.load_plugin("nonebot_plugin_gocqhttp")
init_database()
sleep(3)
def run():
nonebot.run()
|