Przeglądaj źródła

& in mention, not !

Foppe Hemminga 5 lat temu
rodzic
commit
15b5b3012e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      view.py

+ 1 - 1
view.py

@@ -27,7 +27,7 @@ def create_message(name, timestamp, price, quantity, current_quantity=0,
     npc = ''
     if npc_drop:
         npc = '*NPC* '
-    name = '<@!'+stock_id+'>' if stock_id else name
+    name = '<@&'+stock_id+'>' if stock_id else name
     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: