hubot star me, but for slack
CoffeeScript JavaScript Shell
Latest commit 8dbbe12 Dec 1, 2015 @jonrohan 0.2.0

README.md

hubot-slack-reactions

A hubot script like /star me except for slack reactions. Suggestions welcome read over the contributing guidelines.

See src/slack-reactions.coffee for full documentation.

Starme

Star me is what we would use at GitHub to pull random campfire stars from the api and post them in chat. We would use this feature to

  • star me -1year Laugh about what we were saying a year ago today
  • star me pizza Laugh about people talking about pizza
  • star me today Catch up on the highlights from the chat room.

Slack uses emoji reactions for all sorts of fun. This script does the same as the old star me, but uses reactions. There's even some useful shortcuts

  • star me Get messages with reaction ⭐️
  • zap me Get messages with reaction ⚡️
  • react me :poop: Get messages with reaction 💩
  • react me @jonrohan :poop: -1year Get the messages from jonrohan with reaction 💩 from one year ago today

Configuration

You'll need to get your Slack API Auth token. Once you've gotten it for your org, set it as an environment variable.

export SLACK_ACCESS_TOKEN=xxxxxxxx

Installation

In hubot project repo, run:

npm install hubot-slack-reactions --save

Then add hubot-slack-reactions to your external-scripts.json:

[
  "hubot-slack-reactions"
]

Sample Interaction

user1>> hubot react me -1year
hubot>> https://chat.slack.com/archives/general/p1d39f3463d000068

Related

License

MIT © Jon Rohan