lunarflu HF staff commited on
Commit
ee8e2d3
·
verified ·
1 Parent(s): c3bf220

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -78,7 +78,11 @@ async def on_message(message):
78
  if bots_role not in message.author.roles: # bots shouldn't trigger pings for this
79
  print(" not bot ")
80
  content = message.content.lower()
81
- message_jump_url = "<" + message.jump_url + ">"
 
 
 
 
82
  for trigger, slack_mention in TRIGGERS.items():
83
  if all(word in content for word in trigger):
84
  daily_pings.append({
 
78
  if bots_role not in message.author.roles: # bots shouldn't trigger pings for this
79
  print(" not bot ")
80
  content = message.content.lower()
81
+
82
+ CUSTOM_timestamp = 1609459200
83
+ message_jump_url = f'<!date^{CUSTOM_timestamp}^{{{message.jump_url}}}>'
84
+ print(messag_jump_url)
85
+
86
  for trigger, slack_mention in TRIGGERS.items():
87
  if all(word in content for word in trigger):
88
  daily_pings.append({