Wednesday, July 15, 2026 2:52:32 AM
> project show esm_bot
A sophisticated Discord bot that bridges Arma 3 Exile servers with Discord communities. Built in Ruby with secure TCP communication, it delivers territory management, real-time notifications, and comprehensive server administration right in your Discord channels.
Details
> array.rb
# frozen_string_literal: true

class Array
  def to_arma_hashmap
    ESM::Arma::HashMap.from(self)
  end

  # Adds up all the sizes of every element inside the array
  def total_size
    reduce(0) do |total, i|
      size =
        case i
        when Array
          i.total_size
        when Integer
          i
        else
          i.size
        end

      total + size
    end
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7