template/project/bot.tt in boty-0.2.0 vs template/project/bot.tt in boty-1.0.0

- old
+ new

@@ -1,13 +1,19 @@ #!/usr/bin/env ruby require "./<%= bot_name %>" 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