瀏覽代碼

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

Foppe Hemminga 5 年之前
父節點
當前提交
9d57904b50
共有 1 個文件被更改,包括 1 次插入1 次删除
  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