Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/srz-zumix/ruboty-slack_reaction_added
https://github.com/srz-zumix/ruboty-slack_reaction_added
ruboty slack slack-bot
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/srz-zumix/ruboty-slack_reaction_added
- Owner: srz-zumix
- License: mit
- Created: 2021-03-06T02:14:29.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-15T04:34:51.000Z (almost 4 years ago)
- Last Synced: 2024-12-21T12:48:36.805Z (about 1 month ago)
- Topics: ruboty, slack, slack-bot
- Language: Ruby
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ruboty-slack_reaction_added
[![Gem Version](https://badge.fury.io/rb/ruboty-slack_reaction_added.svg)](https://badge.fury.io/rb/ruboty-slack_reaction_added)
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
* :bookmark: reaction : reply permalink
* :+1: 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](https://user-images.githubusercontent.com/1439172/110792563-ebffca00-82b6-11eb-928a-741de77659b9.png)
[RubotySlackRTM]:https://github.com/rosylilly/ruboty-slack_rtm