Skip to content

Commit

Permalink
Limit reactions to one message per channel per two hours (v3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Lowe committed May 27, 2020
1 parent 0764cef commit bbb5e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkbot/bots.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class LinkBot(object):
def __init__(self, conf):
self._conf = conf
match = conf.get('MATCH', self.default_match)
self._regex = re.compile(r'\b%s\b' % match, flags=re.I)
self._regex = re.compile(r'(\b)(%s)(\b)' % match, flags=re.I)
if 'QUIPS' in conf:
self.QUIPS = conf.get('QUIPS')
self._link = conf.get('LINK', '%s|%s')
Expand Down

0 comments on commit bbb5e6e

Please sign in to comment.