jgorset / facebook-messenger

Definitely the best way to make Bots on Facebook Messenger with Ruby
MIT License
962 stars 211 forks source link

Added `reaction` event #260

Closed denmarkmeralpis closed 4 years ago

denmarkmeralpis commented 4 years ago

Usage

Bot.on :reaction do |message|
  message.emoji # => "👍"
  message.action # => "react"
  message.reaction # => "like"

  message.reply(text: 'Thanks for liking my message!')
end
amrutjadhav commented 4 years ago

@denmarkmeralpis This is nice! 👍

jgorset commented 4 years ago

Sweet, with tests and examples and all! Thanks for the great pull request @denmarkmeralpis!

jgorset commented 4 years ago

I released 1.5.0, and it has this in it!

denmarkmeralpis commented 4 years ago

Yey! Thanks 🤘🏻