mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
⬆️ bump version as pre-release
This commit is contained in:
@ -16,7 +16,7 @@ logger.add("error.log",
|
||||
level="ERROR",
|
||||
format=default_format)
|
||||
|
||||
nonebot.init()
|
||||
nonebot.init(custom_config2="config on init")
|
||||
app = nonebot.get_asgi()
|
||||
|
||||
# load builtin plugin
|
||||
@ -25,5 +25,9 @@ nonebot.load_builtin_plugins()
|
||||
# load local plugins
|
||||
nonebot.load_plugins("test_plugins")
|
||||
|
||||
# modify some config / config depends on loaded configs
|
||||
config = nonebot.get_driver().config
|
||||
config.custom_config3 = config.custom_config1
|
||||
|
||||
if __name__ == "__main__":
|
||||
nonebot.run(app="bot:app")
|
||||
|
Reference in New Issue
Block a user