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