@staticmethod
def match(event, kwargs):
    """Compare an event object with the given keywork arguments.

        Called when using :func:`__call__`. See above for an example."""
    for i in kwargs:
        if not hasattr(event, i):
            break
        if getattr(event, i) != kwargs[i]:
            break
    else:
        return True
    return False
