def on_message(msg, server):
    text = msg.get("text", "")
    text = Wrapper.clean_parsing(text)

    match = re.findall(r"^[sS][dD][bB]ot alerts (\b\w+\b)\s?(\b\w+\b)?\s?(\b\w+\b)?", text)
    if not match:
        return
    command, typeof, name = match[0]
    if COMMANDS not in command:

        text = ('I\'m sorry, but couldn\'t quite understand you there, perhaps' +
                ' you could try `list`, use `sdbot list help` to get more info.')
        return text

    api = Wrapper(msg, server)
    results, message = api.results_of(command, typeof, name)
    if isinstance(results, list):
        kwargs = {
            'attachments': json.dumps(results),
            'text': message
        }

        server.slack.post_message(
            msg['channel'],
            '',
            as_user=server.slack.server.username,
            **kwargs)
    else:
        return results
dataset/ETHPy150Open serverdensity/sdbot/limbo/plugins/alerts.py/on_message/swapped operands of `not in`