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

require "active_record"

# Share the esm_test database; its schema is loaded by the service/website suites.
ActiveRecord::Base.establish_connection(
  adapter: "postgresql",
  encoding: "unicode",
  pool: 5,
  host: ENV.fetch("POSTGRES_HOST", "localhost"),
  port: ENV.fetch("POSTGRES_PORT", "5432"),
  database: ENV.fetch("POSTGRES_DATABASE", "esm_test"),
  username: ENV.fetch("POSTGRES_USERNAME", "esm"),
  password: ENV.fetch("POSTGRES_PASSWORD", "password12345")
)

# Define ApplicationRecord for models to inherit from
class ApplicationRecord < ActiveRecord::Base
  self.abstract_class = true
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7