Skip to content

Commit 0d3aaf9

Browse files
committed
chore: bump config version to 8
1 parent bf3a5a9 commit 0d3aaf9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"__comment01__": "Version of config file. Please don't change it",
3-
"config_version": 7,
3+
"config_version": 8,
44

55
"__comment02__": "General config of enabled modules",
66
"__comment03__": "Available modules: lmao_chatgpt, lmao_ms_copilot, ms_copilot, ms_copilot_designer, gemini, groq",

main.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
# Default config file
3939
CONFIG_FILE = "config.json"
40-
CONFIG_COMPATIBLE_VERSIONS = [5, 6, 7]
40+
CONFIG_COMPATIBLE_VERSIONS = [5, 6, 7, 8]
4141

4242

4343
def load_and_parse_config(config_file: str) -> Dict:
@@ -66,6 +66,8 @@ def load_and_parse_config(config_file: str) -> Dict:
6666
f"Your config version ({config_version}) is not compatible! "
6767
f"Compatible versions: {', '.join(str(version) for version in CONFIG_COMPATIBLE_VERSIONS)}"
6868
)
69+
if config_version < max(CONFIG_COMPATIBLE_VERSIONS):
70+
logging.warning(f"You config version {config_version} < {max(CONFIG_COMPATIBLE_VERSIONS)}! Please update it")
6971

7072
# List of enabled modules
7173
enabled_modules = config.get("modules").get("enabled")

0 commit comments

Comments
 (0)