mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 19:36:43 +08:00
* 🎨 修改 nonebot_bison 目录位置 * auto fix by pre-commit hooks * 🚚 fix frontend build target * 🚚 use soft link * Revert "🚚 use soft link" This reverts commit de21f79d5ae1bd5515b04f42a4138cb25ddf3e62. * 🚚 modify dockerfile --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: felinae98 <731499577@qq.com>
19 lines
469 B
Python
19 lines
469 B
Python
from pathlib import Path
|
|
|
|
import nonebot
|
|
from nonebot.adapters.onebot.v11 import Adapter as OneBotV11Adapter
|
|
|
|
nonebot.init(command_start=[""])
|
|
app = nonebot.get_asgi()
|
|
|
|
driver = nonebot.get_driver()
|
|
driver.register_adapter(OneBotV11Adapter)
|
|
|
|
nonebot.load_builtin_plugins("echo")
|
|
# nonebot.load_plugin("nonebot_plugin_help")
|
|
nonebot.load_plugin(Path(__file__).parent / "nonebot_bison")
|
|
nonebot.load_plugins("extra_plugins")
|
|
|
|
if __name__ == "__main__":
|
|
nonebot.run()
|