Made slave less spammy

This commit is contained in:
Jacob Henry 2018-09-30 21:02:42 -04:00
parent 0bb05b406b
commit 6990185736
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ def count_work_callback(slack, msg, match):
# Three: check if we found anything
if len(new_work) == 0:
slack_util.reply(slack, msg, "No work recognized. Use words {} or work will not be recorded".format(counted_data))
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))
return
# Three: Add it to their total work. We key by user_id, to avoid annoying identity shit