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.
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 todaystar me pizza
Laugh about people talking about pizzastar 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
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
In hubot project repo, run:
npm install hubot-slack-reactions --save
Then add hubot-slack-reactions to your external-scripts.json
:
[
"hubot-slack-reactions"
]
user1>> hubot react me -1year
hubot>> https://chat.slack.com/archives/general/p1d39f3463d000068
MIT © Jon Rohan