require "../spec_helper.cr"

module PrivateParlorXT
  class MockConfig < Config
    getter enable_mock_test : Array(Bool) = [true, true]
    getter enable_mockpattern : Array(Bool) = [true, true]
    getter relay_new_chat_members : Array(Bool) = [true, true]

    def initialize(
      @database = "%3Amemory%3A",
      @upvote_limit_interval = 120,
      @downvote_limit_interval = 120,
      @media_limit_period = 120,
      @default_rank = 0,
      @registration_open = true,
      @pseudonymous = false,
      @flag_signatures = false,
      @media_spoilers = false,
      @karma_reasons = false,
      @blacklist_contact = nil,
      @salt = "",
      @linked_network = {} of String => String,
      @database_history = false,
      @karma_economy = nil,
      @spam_interval = 10,
      @spam_handler = SpamHandler.new,
      @statistics = false,
      @toggle_r9k_text = false,
      @toggle_r9k_media = false,
      @toggle_r9k_forwards = false,
      @smileys = [":)", ":|", ":/", ":("],
      @karma_levels = {
        (Int32::MIN...0) => "Junk",
        (0...10)         => "Normal",
        (10...20)        => "Common",
        (20...30)        => "Uncommon",
        (30...40)        => "Rare",
        (40...50)        => "Legendary",
        (50..Int32::MAX) => "Unique",
      }
    )
    end
  end
end
