No commit activity in last 3 years
No release in over 3 years
Slack reaction added extension for Ruboty
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.7
>= 12.3
>= 0.28.0

Runtime

 Project Readme

ruboty-slack_reaction_added

Gem Version

Slack Reaction added event extension for RubotySlackRTM.

Installation

Add this line to your application's Gemfile:

gem 'ruboty-slack_reaction_added'

ENV

  • DISABLE_DEFAULT_REACTION_HANDLERS : Disable ruboty-slack_reaction_added handlers
    • @bot reaction ping message reaction added: reply pong again
    • @bot reaction name message reaction added: reply reaction name
    • 🔖 reaction : reply permalink
    • 👍 reaction : bot +1

Handler options

  • allow_reaction : handler is also called on the event to which the reaction_added
  • raction_only : handler will only be called on the event to which the reaction_added

Message

  • message.reaction : get reaction name
  • message.reaction_by: get reaction_added user name

Example

https://github.com/srz-zumix/ruboty-slack_reaction_added/blob/main/lib/ruboty/slack_reaction_added/handlers/handler.rb

Example