From 76516a4e7346a72e6856cc3f9b03771e532babb3 Mon Sep 17 00:00:00 2001 From: Michael Simard Date: Wed, 3 Dec 2025 22:31:02 -0600 Subject: [PATCH] Remove grey background from price change text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove ANSI code block formatting from price change field to eliminate grey background box. Price change now displays as plain text while maintaining color indication via embed border. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- bot.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bot.py b/bot.py index bbfbe7b..6b27daf 100644 --- a/bot.py +++ b/bot.py @@ -138,19 +138,16 @@ class StockBot(commands.Bot): if change_dollar > 0: color = discord.Color.green() change_emoji = "📈" - ansi_color = "\u001b[0;32m" # Green elif change_dollar < 0: color = discord.Color.red() change_emoji = "📉" - ansi_color = "\u001b[0;31m" # Red else: color = discord.Color.blue() change_emoji = "➡️" - ansi_color = "\u001b[0;34m" # Blue - # Format change string with ANSI color + # Format change string change_sign = "+" if change_dollar >= 0 else "" - change_str = f"```ansi\n{ansi_color}{change_sign}${change_dollar} ({change_sign}{change_percent}%)\u001b[0m\n```" + change_str = f"{change_sign}${change_dollar} ({change_sign}{change_percent}%)" # Custom title for PYPL ticker if ticker == "PYPL":