Quellcode durchsuchen

Increment BOT_VERSION to 2.2.139 and fix newline character handling in InfoCommands.

- Updated BOT_VERSION for the upcoming release.
- Corrected the newline character in the return statement of the InfoCommands class to ensure proper message formatting.
Carles Sentis vor 2 Tagen
Ursprung
Commit
b7d9df126d
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      src/commands/info_commands.py
  2. 1 1
      trading_bot.py

+ 1 - 1
src/commands/info_commands.py

@@ -547,7 +547,7 @@ class InfoCommands:
         parts.append(f"📋 Open Orders (Exchange): {token_stats_data.get('current_open_orders_count', 0)}")
         parts.append(f"💡 Use <code>/performance {token_name}</code> for another view including recent trades.")
         
-        return "\\n".join(parts)
+        return "\n".join(parts)
 
     async def stats_command(self, update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
         """Handle the /stats command. Shows overall stats or stats for a specific token."""

+ 1 - 1
trading_bot.py

@@ -14,7 +14,7 @@ from datetime import datetime
 from pathlib import Path
 
 # Bot version
-BOT_VERSION = "2.2.138"
+BOT_VERSION = "2.2.139"
 
 # Add src directory to Python path
 sys.path.insert(0, str(Path(__file__).parent / "src"))