Sha256: f936543438564f5ef30dfebe5a9eb023cc0d364200f9629ced4fc3b5c0e8edc4
Contents?: true
Size: 331 Bytes
Versions: 1
Compression:
Stored size: 331 Bytes
Contents
#!/usr/bin/env ruby require "./lib/boty" 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
boty-0.0.15 | bin/bot |