Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -228,7 +228,7 @@ def send_daily_pings():
|
|
| 228 |
# send each group of pings in a separate thread
|
| 229 |
for mention, pings in pings_by_mention.items():
|
| 230 |
main_message = slack_client.chat_postMessage(
|
| 231 |
-
channel=
|
| 232 |
text=f"DAILY PINGS FOR {mention} ON {datetime.now().strftime('%d/%m/%Y')}",
|
| 233 |
unfurl_links=False,
|
| 234 |
unfurl_media=False
|
|
@@ -236,7 +236,7 @@ def send_daily_pings():
|
|
| 236 |
main_ts = main_message['ts']
|
| 237 |
for ping in pings:
|
| 238 |
slack_client.chat_postMessage(
|
| 239 |
-
channel=
|
| 240 |
text=f"{ping['mention']} (for the keyword -> '{ping['trigger']}')\nFrom {ping['author']} in channel #{ping['channel']}: {ping['content']}\n{ping['url']}",
|
| 241 |
thread_ts=main_ts,
|
| 242 |
unfurl_links=False,
|
|
|
|
| 228 |
# send each group of pings in a separate thread
|
| 229 |
for mention, pings in pings_by_mention.items():
|
| 230 |
main_message = slack_client.chat_postMessage(
|
| 231 |
+
channel=SLACK_CHANNEL_ID_TEST,
|
| 232 |
text=f"DAILY PINGS FOR {mention} ON {datetime.now().strftime('%d/%m/%Y')}",
|
| 233 |
unfurl_links=False,
|
| 234 |
unfurl_media=False
|
|
|
|
| 236 |
main_ts = main_message['ts']
|
| 237 |
for ping in pings:
|
| 238 |
slack_client.chat_postMessage(
|
| 239 |
+
channel=SLACK_CHANNEL_ID_TEST,
|
| 240 |
text=f"{ping['mention']} (for the keyword -> '{ping['trigger']}')\nFrom {ping['author']} in channel #{ping['channel']}: {ping['content']}\n{ping['url']}",
|
| 241 |
thread_ts=main_ts,
|
| 242 |
unfurl_links=False,
|