mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-02 09:26:12 +08:00
15 lines
330 B
Python
15 lines
330 B
Python
import nonebot
|
|
from nonebot.adapters.cqhttp import Bot as CQHTTPBot
|
|
|
|
nonebot.init(command_start=[""])
|
|
app = nonebot.get_asgi()
|
|
|
|
driver = nonebot.get_driver()
|
|
driver.register_adapter('cqhttp', CQHTTPBot)
|
|
|
|
nonebot.load_builtin_plugins()
|
|
nonebot.load_plugins('src/plugins')
|
|
|
|
if __name__ == "__main__":
|
|
nonebot.run(app="bot:app")
|