Wednesday, July 15, 2026 2:53:30 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
> server_rewards.rake
# frozen_string_literal: true

namespace :migrations do
  namespace :server_rewards do
    task add_reward_id_and_cooldown_defaults: :environment do
      ESM::ServerReward.all.joins(:server).each do |reward|
        configuration = ESM::CommandConfiguration.select(:cooldown_quantity, :cooldown_type).where(community_id: reward.server.community_id, command_name: "reward").first

        reward.update(
          reward_id: nil,
          reward_vehicles: [],
          cooldown_quantity: configuration.cooldown_quantity,
          cooldown_type: configuration.cooldown_type
        )
      end
    end
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7