Sha256: 681fc1d1ec55555a88918a4425b98a2c2328f155c2ae87cd99c03eb5ecc15455
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
Bobot::Commander.on :message do |message| message.reply_with_text(text: "Hello, human! My reply to your message: '#{message.text}'") end Bobot::Commander.on :postback do |postback| if postback.payload == 'WHAT_IS_A_CHATBOT' postback.reply_with_text(text: I18n.t('bobot.what_is_a_chatbot')) end end Bobot::Commander.on :optin do |optin| optin.reply_with_text(text: "Ah, human! Clicked on Send To Messenger your came from '#{ref}'") end Bobot::Commander.on :referral do |referral| referral.reply_with_text(text: "Great you came from #{referal.ref}") end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bobot-1.0.53 | spec/dummy/app/bobot/workflow.rb |
bobot-1.0.52 | spec/dummy/app/bobot/workflow.rb |