(reddit_state)
Sets up the reddit state
    :param reddit_state: dictionary holding reddit settings
    :return: none
Sets up the reddit state
    :param reddit_state: dictionary holding reddit settings
    :return: none
Sets up the reddit state : param reddit_state : dictionary holding reddit settings : return : none
def initialize_state(reddit_state):
    """
    Sets up the reddit state
    :param reddit_state: dictionary holding reddit settings
    :return: none
    """
    check_for_existence('time_to_save', reddit_state,
                        arrow.now().replace(hours=0))
    check_for_existence('max_score', reddit_state, 0)
    check_for_existence('gilded_skip', reddit_state, 0)
    check_for_existence('multi_edit', reddit_state, 0)
    check_for_existence('only_edit', reddit_state, 0)
    check_for_existence('whitelisted_comments', reddit_state, {})
    check_for_existence('whitelisted_posts', reddit_state, {})
    check_for_existence('scheduled_time', reddit_state, 0)
    check_for_existence('refresh_token', reddit_state, '')
    check_for_existence('reddit_username', reddit_state, '')
    check_for_existence('reddit_password', reddit_state, '')
    check_for_existence('reddit_client_id', reddit_state, '')
    check_for_existence('reddit_client_secret', reddit_state, '')

    reddit_state['scheduler_bool'] = 0
    reddit_state['whitelist_window_open'] = 0
    reddit_state['confirmation_window_open'] = 0
    reddit_state.sync
def initialize_state ( reddit_state ) : check_for_existence ( 'time_to_save' , reddit_state , arrow . now ( ) . replace ( hours = 0 ) ) check_for_existence ( 'max_score' , reddit_state , 0 ) check_for_existence ( 'gilded_skip' , reddit_state , 0 ) check_for_existence ( 'multi_edit' , reddit_state , 0 ) check_for_existence ( 'only_edit' , reddit_state , 0 ) check_for_existence ( 'whitelisted_comments' , reddit_state , { } ) check_for_existence ( 'whitelisted_posts' , reddit_state , { } ) check_for_existence ( 'scheduled_time' , reddit_state , 0 ) check_for_existence ( 'refresh_token' , reddit_state , '' ) check_for_existence ( 'reddit_username' , reddit_state , '' ) check_for_existence ( 'reddit_password' , reddit_state , '' ) check_for_existence ( 'reddit_client_id' , reddit_state , '' ) check_for_existence ( 'reddit_client_secret' , reddit_state , '' ) reddit_state [ 'scheduler_bool' ] = 0 reddit_state [ 'whitelist_window_open' ] = 0 reddit_state [ 'confirmation_window_open' ] = 0 reddit_state . sync