Add custom company name for AMD ticker

Display AMD as "Advanced Money Destroyer" in stock notifications.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Michael Simard
2025-12-04 20:21:53 -06:00
parent 45d9965638
commit 02783de4f3

5
bot.py
View File

@@ -187,6 +187,11 @@ class StockBot(commands.Bot):
""" """
ticker = stock_data['ticker'] ticker = stock_data['ticker']
company_name = stock_data.get('company_name', ticker) company_name = stock_data.get('company_name', ticker)
# Custom company name for AMD
if ticker == "AMD":
company_name = "Advanced Money Destroyer"
current_price = stock_data['current_price'] current_price = stock_data['current_price']
change_dollar = stock_data['change_dollar'] change_dollar = stock_data['change_dollar']
change_percent = stock_data['change_percent'] change_percent = stock_data['change_percent']