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:
5
bot.py
5
bot.py
@@ -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']
|
||||||
|
|||||||
Reference in New Issue
Block a user