From 5fae4a271a07f88a9b89d0dc1d4c09134cb90739 Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Sat, 2 May 2026 14:56:12 +0800 Subject: [PATCH] fix: add bot.py entry point and danding_bot/__init__.py --- bot.py | 11 +++++++++++ danding_bot/__init__.py | 0 2 files changed, 11 insertions(+) create mode 100644 bot.py create mode 100644 danding_bot/__init__.py diff --git a/bot.py b/bot.py new file mode 100644 index 0000000..a0dc5a7 --- /dev/null +++ b/bot.py @@ -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() diff --git a/danding_bot/__init__.py b/danding_bot/__init__.py new file mode 100644 index 0000000..e69de29