Sha256: c078eee9dad6f0ab63b4238f84234f68624b26c28408c7362e0138a3da4ae8a3
Contents?: true
Size: 328 Bytes
Versions: 4
Compression:
Stored size: 328 Bytes
Contents
#!/usr/bin/env ruby require "./lib/boty" 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| next if message.from? self say I18n.t "template.hello", user_name: message.user.name end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
boty-0.0.14 | bin/bot |
boty-0.0.13 | bin/bot |
boty-0.0.12 | bin/bot |
boty-0.0.11 | bin/bot |