mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-05-22 15:25:15 +00:00
fix: Update help text for commands to avoid truncation and tx issues
This commit is contained in:
@@ -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 <city|neighborhood|city country|lat,lon|help> - Get AQI for city/neighborhood in {region}, international cities, coordinates, or pollutant help"
|
||||
return f"Usage: aqi <city|neighborhood|city country|lat,lon|help> - 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.
|
||||
|
||||
@@ -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 <category>' for specific categories, 'channels #channel' for specific channel info.",
|
||||
"help": "Lists hashtag channels. Use 'channels' for general, 'channels list' for all, 'channels <category>' 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}",
|
||||
|
||||
@@ -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 <category>' for specific categories, 'channels #channel' for specific channel info.",
|
||||
"help": "Lists hashtag channels. Use 'channels' for general, 'channels list' for category lists, 'channels <category>' 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}"
|
||||
|
||||
Reference in New Issue
Block a user