-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
39 lines (31 loc) · 1.08 KB
/
Copy pathconfig.py
File metadata and controls
39 lines (31 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import os
from dotenv import load_dotenv
load_dotenv()
BOT_TOKEN = os.environ.get("SLACK_BOT_TOKEN")
SIGNING_SECRET = os.environ.get("SLACK_SIGNING_SECRET")
PORT = int(os.environ.get("PORT", 3000))
# Presence of an app-level token is what selects Socket Mode over the HTTP server.
APP_TOKEN = os.environ.get("SLACK_APP_TOKEN")
EVENTS_PATH = "/slack/events"
HEALTH_PATH = "/health"
# The startup sweep walks every public channel; once the workspace is backfilled,
# events/channels.py keeps up with new ones and this can be turned off.
AUTOJOIN_ON_BOOT = os.environ.get("AUTOJOIN_ON_BOOT", "true").lower() not in (
"0",
"false",
"no",
)
# Quick Poll (DashPoll, Slack user U0BJZVAPG5B) already seeds -poll reactions in
# these channels. This bot must no-op there so we don't duplicate emoji.
QUICK_POLL_CHANNEL_IDS = frozenset(
{
"C09EK4LP656", # #transit
"C09DBURED53", # #announcements
"C09DADRS73M", # #food-orders
}
)
POLL_TRIGGER = "-poll"
POLL_REACTION_EMOJIS = (
"sf-symbols_checkmark-square-fill",
"sf-symbols_xmark-square-fill",
)