Wednesday, July 15, 2026 2:52:50 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
> json.rb
# frozen_string_literal: true

require "fast_jsonparser"
require "neatjson"

module ESM
  module JSON
    def self.parse(json)
      FastJsonparser.parse(json)
    rescue
      nil
    end

    def self.pretty_generate(json)
      json = parse(json) if json.is_a?(String)
      ::JSON.neat_generate(json, after_comma: 1, after_colon: 1, wrap: 95)
    end
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7