lunarflu HF staff commited on
Commit
42530b6
·
verified ·
1 Parent(s): b7eca85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -5,13 +5,13 @@ from flask import Flask, request, Response
5
 
6
  app = Flask(__name__)
7
 
8
- SLACK_TOKEN = 'YOUR_SLACK_BOT_TOKEN'
9
- SLACK_SIGNING_SECRET = 'YOUR_SLACK_SIGNING_SECRET'
10
- TARGET_CHANNEL_ID = 'YOUR_TARGET_SLACK_CHANNEL_ID'
11
 
12
  TRIGGERS = {
13
- "urgent": "<@U061W3NRFFA>", # Replace with actual Slack user IDs
14
- "help": "<@U87654321>",
15
  }
16
 
17
  slack_client = WebClient(token=SLACK_TOKEN)
 
5
 
6
  app = Flask(__name__)
7
 
8
+ SLACK_TOKEN = os.getenv('SLACK_TOKEN')
9
+ SLACK_SIGNING_SECRET = os.getenv('SIGNING_SECRET')
10
+ TARGET_CHANNEL_ID = os.getenv('CHANNEL_ID')
11
 
12
  TRIGGERS = {
13
+ "urgent": "<@U061W3NRFFA>",
14
+ "help": "<@U061W3NRFFA>",
15
  }
16
 
17
  slack_client = WebClient(token=SLACK_TOKEN)