Sha256: 0feccc28e6d2b02d9d82b3ba38023e395dd5b25f1178f49a50f0625b34886f58
Contents?: true
Size: 297 Bytes
Versions: 4
Compression:
Stored size: 297 Bytes
Contents
#!/usr/bin/env ruby require "./<%= bot_name %>" Boty.locale = ARGV.pop || :en session = Boty::Session.new session.start do desc name, I18n.t("template.presence", bot_name: name) hear(/#{name}/i) do next if message_from_me? say I18n.t "template.hello", user_name: user.name end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
boty-0.2.0 | template/project/bot.tt |
boty-0.1.2 | template/project/bot.tt |
boty-0.1.1 | template/project/bot.tt |
boty-0.1.0 | template/project/bot.tt |