Sha256: c6b367c7b6d69b8dbd91ca4e30c870d8b3f3c5324422167821c8ee285a2aba2a
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
#!/usr/bin/env ruby require "./<%= bot_name %>" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
boty-0.0.11 | template/project/bot.tt |