def is_invocation(event):
    """Return whether the event is an invocation."""
    attachments = event.get("attachments")
    if attachments is None or len(attachments) < 1:
        return False

    footer = attachments[0].get("footer", "")
    if footer.startswith("Posted using /giphy"):
        return True

    return False