bin/bot in boty-0.0.14 vs bin/bot in boty-0.0.15
- old
+ new
@@ -1,11 +1,12 @@
#!/usr/bin/env ruby
require "./lib/boty"
-Boty.locale = ARGV.pop || :en
session = Boty::Session.new
session.start do |bot|
+ Boty.locale = ARGV.pop || :en
+
bot.desc I18n.t "template.presence", bot_name: bot.name
bot.message(/#{bot.name}/i) do |message|
next if message.from? self
say I18n.t "template.hello", user_name: message.user.name
end