template/project/bot.tt in boty-0.0.11 vs template/project/bot.tt in boty-0.0.12
- old
+ new
@@ -4,10 +4,10 @@
Boty.locale = ARGV.pop || :en
session = Boty::Session.new
session.start do |bot|
bot.desc I18n.t "template.presence", bot_name: bot.name
- bot.message(/<%= bot.name %>/i) do |message|
+ bot.message(/#{bot.name}/i) do |message|
next if message.from? self
say I18n.t "template.hello", user_name: message.user.name
end
end