#!/usr/bin/env ruby require "./lib/boty" Boty.locale = ARGV.pop || :en Boty::Logger.adapter = Boty::Logger::Multi.new([ ::Logger.new(STDOUT), ::Logger.new("log/output.log", "daily") ]) session = Boty::Session.new session.start do desc name, I18n.t("template.presence", bot_name: name) hear(/#{name}/i) do next if message_from_me? logger.debug "saying hello" say I18n.t "template.hello", user_name: user.name end end