Sha256: 45ed87bd0456459918e5033748ee7f873d9b337052aa3574eaf6100895b968f9
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
#!/usr/bin/env ruby require "./<%= bot_name %>" def set_locale(locale) begin Boty.locale = locale || :en rescue I18n::InvalidLocale Boty.locale = :en end end session = Boty::Session.new session.start do |bot| set_locale ARGV.pop bot.desc I18n.t "template.presence", bot_name: bot.name bot.match(/#{bot.name}/i) do next if message.from? self say I18n.t "template.hello", user_name: user.name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
boty-0.0.15 | template/project/bot.tt |