mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-06-23 14:16:52 +08:00
update bot.py
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
import nonebot
|
import nonebot
|
||||||
from nonebot.adapters.cqhttp import Bot as CQHTTPBot
|
from nonebot.adapters.onebot.v11 import Adapter as OneBotV11Adapter
|
||||||
|
|
||||||
nonebot.init(command_start=[""])
|
nonebot.init(command_start=[""])
|
||||||
app = nonebot.get_asgi()
|
app = nonebot.get_asgi()
|
||||||
|
|
||||||
driver = nonebot.get_driver()
|
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_plugin("nonebot_plugin_help")
|
||||||
nonebot.load_plugins("src/plugins")
|
nonebot.load_plugins("src/plugins")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user