Ver código fonte

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

Foppe Hemminga 5 anos atrás
pai
commit
51860312d1
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      view.py

+ 1 - 1
view.py

@@ -25,7 +25,7 @@ def create_message(name, timestamp, price, quantity, current_quantity=0, forecas
     npc = ''
     if npc_drop:
         npc = '*NPC* '
-    this_message = "{}: {}{} dropped {:,} shares at ${:,.2f} for a grand total of ${:,.1f}B [{}]".format(
+    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(