debug 11
This commit is contained in:
@@ -20,6 +20,16 @@ __plugin_meta__ = PluginMetadata(
|
|||||||
_nb_config = get_driver().config
|
_nb_config = get_driver().config
|
||||||
_raw = _nb_config.model_dump() if hasattr(_nb_config, "model_dump") else _nb_config.dict()
|
_raw = _nb_config.model_dump() if hasattr(_nb_config, "model_dump") else _nb_config.dict()
|
||||||
_prefix = "GROUP_HORSE_RACING_"
|
_prefix = "GROUP_HORSE_RACING_"
|
||||||
|
|
||||||
|
print("[group_horse_racing] Raw NoneBot config keys (all):")
|
||||||
|
for k, v in _raw.items():
|
||||||
|
print(f" {k} = {v!r}")
|
||||||
|
|
||||||
|
print("[group_horse_racing] Filtered plugin config:")
|
||||||
|
for k, v in _raw.items():
|
||||||
|
if k.startswith(_prefix):
|
||||||
|
print(f" {k} = {v!r}")
|
||||||
|
|
||||||
plugin_config = Config(**{
|
plugin_config = Config(**{
|
||||||
k[len(_prefix):]: v
|
k[len(_prefix):]: v
|
||||||
for k, v in _raw.items()
|
for k, v in _raw.items()
|
||||||
|
|||||||
Reference in New Issue
Block a user