fix: add bot.py entry point and danding_bot/__init__.py
This commit is contained in:
11
bot.py
Normal file
11
bot.py
Normal 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()
|
||||
Reference in New Issue
Block a user