mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-10-22 14:01:14 +00:00
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.
This commit is contained in:
1 parent
24fdfb2370
commit
d23ee5db9e
2 files changed
-23
No files matched your search
@@ -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
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in new issue
Block a user