require 'drb' require 'K5bot' trap ('INT') { exit } trap ('TERM') { exit } bot = MyBot.new DRb.start_service('druby://localhost:9002', bot) DRb.thread.join