From ffdc906b2232f986fa8d7b1eff82cbd4baa6e960 Mon Sep 17 00:00:00 2001 From: agessaman Date: Mon, 26 Jan 2026 21:11:36 -0800 Subject: [PATCH] fix: Update help text for commands to avoid truncation and tx issues --- modules/commands/aqi_command.py | 2 +- translations/en-GB.json | 6 +++--- translations/en.json | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/commands/aqi_command.py b/modules/commands/aqi_command.py index bb78132..73ee993 100644 --- a/modules/commands/aqi_command.py +++ b/modules/commands/aqi_command.py @@ -97,7 +97,7 @@ class AqiCommand(BaseCommand): def get_help_text(self) -> str: region = self.default_state or self.default_country - return f"Usage: aqi - Get AQI for city/neighborhood in {region}, international cities, coordinates, or pollutant help" + return f"Usage: aqi - Get AQI for city/neighborhood in {region}, intl cities, coordinates, or help" def can_execute(self, message: MeshMessage) -> bool: """Check if this command can be executed with the given message. diff --git a/translations/en-GB.json b/translations/en-GB.json index eefb891..b06c98a 100644 --- a/translations/en-GB.json +++ b/translations/en-GB.json @@ -243,7 +243,7 @@ }, "sports": { "description": "Get sports scores and schedules (usage: sports [team/league])", - "help": "Get sports scores & schedules. Use 'sports' for default teams, 'sports [team]' for specific team, or 'sports [league]' for league games.", + "help": "Get sports scores & schedules. Use 'sports' for default teams, 'sports [team]' for specific team, or 'sports [league]' for games.", "error_fetching": "Error fetching sports data", "error_fetching_league": "Error fetching {sport} data", "error_fetching_team": "Error fetching data for {team}", @@ -257,7 +257,7 @@ }, "stats": { "description": "Show statistics for past 24 hours. Use 'stats messages', 'stats channels', or 'stats paths' for specific stats.", - "help": "Show 24-hour bot statistics. Commands: 'stats' (basic), 'stats messages' (bot users), 'stats channels' (channel activity), 'stats paths' (longest paths)", + "help": "Show 24h bot stats. Use 'stats' (basic), 'stats messages' (users), 'stats channels' (activity), 'stats paths' (paths)", "disabled": "Stats command is disabled", "unknown_subcommand": "Unknown: {subcommand}. Use 'stats', 'stats messages', 'stats channels', or 'stats paths'", "error": "Error getting stats: {error}", @@ -509,7 +509,7 @@ }, "channels": { "description": "List or manage channels", - "help": "Lists hashtag channels with sub-categories. Use 'channels' for general, 'channels list' for all categories, 'channels ' for specific categories, 'channels #channel' for specific channel info.", + "help": "Lists hashtag channels. Use 'channels' for general, 'channels list' for all, 'channels ' for specific", "no_channels_for_category": "No channels configured for '{category}'. Use 'channels' for general channels.", "no_channels_configured": "No channels configured. Contact admin to add channels.", "error_retrieving_channels": "Error retrieving channels: {error}", diff --git a/translations/en.json b/translations/en.json index b18fd58..77bce16 100644 --- a/translations/en.json +++ b/translations/en.json @@ -139,7 +139,7 @@ }, "sports": { "description": "Get sports scores and schedules (usage: sports [team/league])", - "help": "Get sports scores & schedules. Use 'sports' for default teams, 'sports [team]' for specific team, or 'sports [league]' for league games.", + "help": "Get sports scores & schedules. Use 'sports' for default teams, 'sports [team]' for specific team, or 'sports [league]' for games.", "error_fetching": "Error fetching sports data", "error_fetching_league": "Error fetching {sport} data", "error_fetching_team": "Error fetching data for {team}", @@ -153,7 +153,7 @@ }, "stats": { "description": "Show statistics for past 24 hours. Use 'stats messages', 'stats channels', 'stats paths', or 'stats adverts' for specific stats.", - "help": "Show 24-hour bot statistics. Commands: 'stats' (basic), 'stats messages' (bot users), 'stats channels' (channel activity), 'stats paths' (longest paths), 'stats adverts' (top advert nodes)", + "help": "Show 24h bot stats. Use 'stats' (basic), 'stats messages' (users), 'stats channels' (activity), 'stats paths', 'stats adverts'", "subcommands": [ { "name": "messages", @@ -470,11 +470,11 @@ }, "channels": { "description": "List or manage channels", - "help": "Lists hashtag channels with sub-categories. Use 'channels' for general, 'channels list' for all categories, 'channels ' for specific categories, 'channels #channel' for specific channel info.", + "help": "Lists hashtag channels. Use 'channels' for general, 'channels list' for category lists, 'channels ' for specific category", "subcommands": [ { "name": "list", - "description": "List all channel categories" + "description": "List all channels in a category" } ], "no_channels_for_category": "No channels configured for '{category}'. Use 'channels' for general channels.", @@ -498,7 +498,7 @@ }, "dice": { "description": "Roll dice (usage: dice [sides] or dice [count]d[sides] or dice d10 d6 for mixed dice or dice decade for decade die)", - "help": "Roll dice. Use 'dice' for d6, 'dice d20' for d20, 'dice 2d6' for 2d6, 'dice d10 d6' for mixed dice, 'dice decade' for decade die (00-90), etc.", + "help": "Roll dice. Use 'dice' for d6, 'dice d20' for d20, 'dice 2d6' for 2d6, 'dice d10 d6' for mixed, 'dice decade' for decade (00-90).", "invalid_dice_type": "Invalid dice type.", "single_die": "🎲 d{sides}: {result}", "multiple_dice": "🎲 {count}d{sides}: [{results}] = {total}"