Closed engels74 closed 3 months ago
These changes improve the configuration management system, particularly for handling color values in the bot and related components. A new function standardizes color value formatting, ensuring consistent usage across the application. Additionally, several files have been adjusted to reflect these enhancements, streamlining the configuration process and improving robustness.
Files | Summary |
---|---|
bot/commands.py , config/config.py , config/config.yml.sample |
Enhanced color value handling through a new formatting function. Updated configuration keys to use double quotes and ensured consistent formatting during loading and saving. |
graphs/generate_graphs.py , graphs/generate_graphs_user.py |
Adjusted color handling by stripping quotation marks from color variables and removed unnecessary imports, simplifying the graph generation process. |
main.py |
Updated configuration handling and logging, ensuring proper formatting and altering log message structure for improved clarity. |
sequenceDiagram
participant User
participant Main
participant Config
participant Graphs
User->>Main: Requests graph
Main->>Config: Load configuration
Config->>Main: Return formatted colors
Main->>Graphs: Generate graph with colors
Graphs->>User: Display graph
🐇 In the meadow where colors bloom,
A rabbit hops, dispelling gloom.
With quotes now wrapped in double's embrace,
Our config's neat, in its rightful place!
Hooray for change, let colors dance,
With every hop, we take a chance! 🌈✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Changelog:
config.yml
is in double quotes (""
). Otherwise using the/config
would set the values asNone
, whenever you would change any option.ruff check --fix
to clear unused imports.Summary by CodeRabbit
New Features
TV_COLOR
andMOVIE_COLOR
.Bug Fixes
Documentation
Chores