require 'rufus-scheduler'

module Constants
  def self.determine_id(tox_id, personal_id)
    ENV['BOT_NAME'] == "thunder" ? tox_id : personal_id
  end

  SERVER_ID ||= determine_id(807690259369689138, 650143161645006848)

  # Roles
  ADMIN_ROLE_ID ||= determine_id(807691115049648158, 665696338536824848)
  MOD_ROLE_ID ||= determine_id(807694130448302080, 665696287772901416)
  STAFF_ROLES ||= [ADMIN_ROLE_ID, MOD_ROLE_ID]
  MUTED_ROLE_ID ||= determine_id(808009631451709510, 668616677306531870)

  # Channels
  MOD_LOG_ID ||= determine_id(808921994540089385, 651969052155183128)
  MOD_LOG ||= Bot::BOT.channel(MOD_LOG_ID)

  # Other constants
  CAP_ID = 260600155630338048
  DB = Bot::DB
  SCHEDULER = Rufus::Scheduler.new
  HELP_COMMAND ||= YAML.load_file 'help.yml'
  SCHEDULER ||= Rufus::Scheduler.new
  MODERATION_COMMANDS = HELP_COMMAND["moderation"]
end