fix: add bot.py entry point and danding_bot/__init__.py

This commit is contained in:
2026-05-02 14:56:12 +08:00
parent fe081f43cf
commit 5fae4a271a
2 changed files with 11 additions and 0 deletions

11
bot.py Normal file
View File

@@ -0,0 +1,11 @@
import nonebot
from nonebot.adapters.onebot.v11 import Adapter as ONEBOT_V11Adapter
nonebot.init()
driver = nonebot.get_driver()
driver.register_adapter(ONEBOT_V11Adapter)
nonebot.load_builtin_plugins("echo")
nonebot.load_from_toml("pyproject.toml")
if __name__ == "__main__":
nonebot.run()