Minor formatting thing
This commit is contained in:
parent
e0bab3bfb4
commit
d89c1367b3
|
|
@ -34,7 +34,8 @@ def count_work_callback(slack, msg, match):
|
||||||
# Three: check if we found anything
|
# Three: check if we found anything
|
||||||
if len(new_work) == 0:
|
if len(new_work) == 0:
|
||||||
if re.search(r'\s\d\s', text) is not None:
|
if re.search(r'\s\d\s', text) is not None:
|
||||||
slack_util.reply(slack, msg, "No work recognized. Use words {} or work will not be recorded".format(counted_data))
|
slack_util.reply(slack, msg,
|
||||||
|
"No work recognized. Use words {} or work will not be recorded".format(counted_data))
|
||||||
return
|
return
|
||||||
|
|
||||||
# Three: Add it to their total work. We key by user_id, to avoid annoying identity shit
|
# Three: Add it to their total work. We key by user_id, to avoid annoying identity shit
|
||||||
|
|
@ -83,4 +84,5 @@ def dump_work_callback(slack, msg, match):
|
||||||
|
|
||||||
# Make dem HOOKs
|
# Make dem HOOKs
|
||||||
count_work_hook = slack_util.Hook(count_work_callback, channel_whitelist=[channel_util.SLAVES_TO_THE_MACHINE_ID])
|
count_work_hook = slack_util.Hook(count_work_callback, channel_whitelist=[channel_util.SLAVES_TO_THE_MACHINE_ID])
|
||||||
dump_work_hook = slack_util.Hook(dump_work_callback, pattern="dump towel data", channel_whitelist=[channel_util.COMMAND_CENTER_ID])
|
dump_work_hook = slack_util.Hook(dump_work_callback, pattern="dump towel data",
|
||||||
|
channel_whitelist=[channel_util.COMMAND_CENTER_ID])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue