bin/bot in boty-0.0.10 vs bin/bot in boty-0.0.11

- old
+ new

@@ -1,11 +1,13 @@ #!/usr/bin/env ruby require "./lib/boty" +Boty.locale = ARGV.pop || :en + session = Boty::Session.new session.start do |bot| - bot.desc "Responds when someone asks for the #{bot.name} presence." - bot.message(/#{bot.name}, are you there\?/i) do |message| + bot.desc I18n.t "template.presence", bot_name: bot.name + bot.message(/#{bot.name}/i) do |message| next if message.from? self - say "Ohay <@#{message.user}>! I'm here, that's for sure." + say I18n.t "template.hello", user_name: message.user.name end end