Kaynağa Gözat

Add '@' to stock name so it triggers @discord notifications

Foppe Hemminga 5 yıl önce
ebeveyn
işleme
9d57904b50
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      view.py

+ 1 - 1
view.py

@@ -28,7 +28,7 @@ def create_message(name, timestamp, price, quantity, current_quantity=0, forecas
     this_message = "{}: {}{} dropped {:,} shares at ${:,.2f} for a grand total of ${:,.1f}B [{}]".format(
         this_time, npc, name, quantity, price, this_drop_decimal, current_quantity)
     if forecast_previous and forecast_latest:
-        this_message = "{}: {} changed from {} to {} with {:,} shares available at ${:,.2f}".format(
+        this_message = "{}: @{} changed from {} to {} with {:,} shares available at ${:,.2f}".format(
             this_time, name, forecast_previous, forecast_latest, current_quantity, price)
     return this_message