From d23ee5db9e92fcb9a4c292489fe52baa6f83b59e Mon Sep 17 00:00:00 2001 From: agessaman Date: Sun, 28 Jun 2026 08:55:25 -0700 Subject: [PATCH] refactor(config): remove custom syntax section from configuration files - Deleted the `[Custom_Syntax]` section from `config.ini.example` and `core.py`, simplifying the configuration by removing outdated custom syntax patterns and examples. - This change streamlines the configuration files, focusing on essential settings and improving clarity for users. --- config.ini.example | 12 ------------ modules/core.py | 11 ----------- 2 files changed, 23 deletions(-) diff --git a/config.ini.example b/config.ini.example index ec2f4f3..7366432 100644 --- a/config.ini.example +++ b/config.ini.example @@ -573,18 +573,6 @@ log_max_bytes = 5242880 # log_backup_count: number of rotated backup files to keep (e.g. meshcore_bot.log.1 … .3) log_backup_count = 3 -[Custom_Syntax] -# Custom syntax patterns for special message formats -# Format: pattern = "response_format" -# Available fields: {sender}, {phrase}, {connection_info}, {snr}, {timestamp}, {path}, {path_distance}, {firstlast_distance} -# {phrase}: The text after the trigger (for custom syntax patterns) -# {path_distance}: Total distance between all hops in path with locations (e.g., "123.4km (3 segs, 1 no-loc)") -# {firstlast_distance}: Distance between first and last repeater in path (e.g., "45.6km" or empty if locations missing) -# -# Note: The "t" command is now handled by the test command as an alias -# "t phrase" works the same as "test phrase" - both use the test response format -# Example: "t hello world" -> "ack {sender}: hello world | {connection_info}" - [External_Data] # URL shortener API base (v.gd / is.gd-compatible create.php). Default: https://v.gd # See https://v.gd/apishorteningreference.php diff --git a/modules/core.py b/modules/core.py index 311700b..befba7d 100644 --- a/modules/core.py +++ b/modules/core.py @@ -895,17 +895,6 @@ colored_output = true # Options: DEBUG, INFO, WARNING, ERROR, CRITICAL meshcore_log_level = INFO -[Custom_Syntax] -# Custom syntax patterns for special message formats -# Format: pattern = "response_format" -# Available fields: {sender}, {phrase}, {connection_info}, {snr}, {timestamp}, {path} -# {phrase}: The text after the trigger (for t_phrase syntax) -# -# Special syntax: Messages starting with "t " or "T " followed by a phrase -# Example: "t hello world" -> "ack {sender}: hello world | {connection_info}" -t_phrase = "ack {sender}: {phrase} | {connection_info}" - - [External_Data] # Weather API key (future feature) weather_api_key =