7c9cf0d8b4c39fc144fe0d2ce5e3a4ec5beb49b1
reset_to_defaults() previously only cleared the runtime_config dict and saved config_runtime.yaml, but never touched the actual globals that control runtime behavior. After a reset, LANGUAGE_MODE, AUTONOMOUS_DEBUG, VOICE_DEBUG_MODE, USE_CHESHIRE_CAT, PREFER_AMD_GPU, and DM_MOOD all kept their current in-memory values until the next restart. Now reset_to_defaults() also resets the corresponding globals to their default values from CONFIG (the static config loaded from config.yaml). Both full reset and single-key reset are supported. The default values come from the Pydantic AppConfig schema, ensuring consistency. Tested: set non-default values, full reset -> all back to defaults, single-key reset -> only that key back to default, runtime_state property reflects the reset immediately.
Description
Llama.cpp-powered Hatsune Miku Discord bot with autonomous features, chat, and image generation
Languages
Python
82.1%
JavaScript
10.1%
HTML
4.1%
Jupyter Notebook
1.2%
Shell
1%
Other
1.5%