from typing import Dict


def is_active_slack_user(user: Dict) -> bool:
    """
    Returns true for non-bot and active users.
    Only returns true for users with email
    addresses, if you dont have an email
    its assumed you are bot.

    See https://api.slack.com/types/user
    """
    if not user.get("deleted") and not user.get("is_bot"):
        profile = user.get("profile")
        if profile:
            if profile.get("email"):
                return True
    return False