初始化完成后新增配置项未生效
#150
-
使用 config = nonebot.get_driver().config
config.custom_config = {"hello": "world"} 如图所见, |
Beta Was this translation helpful? Give feedback.
Answered by
mnixry
May 22, 2022
Replies: 2 comments
-
这个日志似乎是初始化的时候打的,所以没有 虽然但是建议把所有配置写进.env,不建议动态修改config |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
llxlr
-
这个日志是初始化时log的,如果你在初始化之后修改自然是不会显示的 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个日志似乎是初始化的时候打的,所以没有
你要是去取的话应该还是有的?
虽然但是建议把所有配置写进.env,不建议动态修改config