Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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({
|