from typing import Dict


def is_active_user(user: Dict) -> bool:
    """
    Returns true if the user is active and not the bot
    :param user: the user to check
    :return: boolean if user is active
    """
    return (user is not None
            and not user['deleted']
            and not user['is_restricted']
            and not user['is_bot']
            and 'donut' not in user['name']
            and 'doughnut' not in user['name'])