Nagging only in CC
This commit is contained in:
parent
bc25ffcb1e
commit
8d1168d5eb
|
|
@ -8,6 +8,8 @@ COMMAND_CENTER_ID = "GCR631LQ1"
|
|||
SLAVES_TO_THE_MACHINE_ID = "C9WUQBYNP"
|
||||
BOTZONE = "C3BF2MFKM"
|
||||
|
||||
NOT_ALLOWED_HERE = "There's a time and place for everything, but not here!"
|
||||
|
||||
# Define our patterns
|
||||
channel_check_pattern = r"channel id\s*(.*)"
|
||||
|
||||
|
|
|
|||
|
|
@ -27,8 +27,10 @@ class Job(object):
|
|||
|
||||
|
||||
def nag_callback(slack, msg, match):
|
||||
# Only allow in
|
||||
|
||||
# Only allow in command center
|
||||
if msg["channel"] != channel_util.COMMAND_CENTER_ID:
|
||||
response = channel_util.NOT_ALLOWED_HERE
|
||||
else:
|
||||
# Get the day
|
||||
day = match.group(1).lower()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue