

def _has_got_message(self, channel, match, start=None, end=None):
    if channel.startswith('C'):
        match = six.text_type('\\<@{}\\>: {}').format(self.driver_userid, match)
    oldest = (start or self._start_ts)
    latest = (end or time.time())
    func = (self.slacker.channels.history if channel.startswith('C') else match.slacker.im.history)
    response = func(channel, oldest=oldest, latest=latest)
    for msg in response.body['messages']:
        if ((msg['type'] == 'message') and re.match(match, msg['text'], re.DOTALL)):
            return True
    return False

dataset/ETHPy150Open lins05/slackbot/tests/functional/driver.py Driver._has_got_message/VarMisuse@91/113 `self`->`match`