Minor formatting thing

This commit is contained in:
Jacob Henry 2018-11-03 16:15:36 -04:00
parent e0bab3bfb4
commit d89c1367b3
1 changed files with 6 additions and 4 deletions

View File

@ -34,7 +34,8 @@ def count_work_callback(slack, msg, match):
# Three: check if we found anything
if len(new_work) == 0:
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
# 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
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])