update bot.py

This commit is contained in:
felinae98 2022-02-10 00:38:48 +08:00
parent b3f3eedbb5
commit a9e8ad05d7
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

6
bot.py
View File

@ -1,13 +1,13 @@
import nonebot
from nonebot.adapters.cqhttp import Bot as CQHTTPBot
from nonebot.adapters.onebot.v11 import Adapter as OneBotV11Adapter
nonebot.init(command_start=[""])
app = nonebot.get_asgi()
driver = nonebot.get_driver()
driver.register_adapter("cqhttp", CQHTTPBot)
driver.register_adapter(OneBotV11Adapter)
nonebot.load_builtin_plugins()
nonebot.load_builtin_plugins("echo")
nonebot.load_plugin("nonebot_plugin_help")
nonebot.load_plugins("src/plugins")