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 -1yearLaugh about what we were saying a year ago today
star me pizzaLaugh about people talking about pizza
star me todayCatch 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 meGet messages with reaction
zap meGet messages with reaction
react me :poop:Get messages with reaction
react me @jonrohan :poop: -1yearGet 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.
In hubot project repo, run:
npm install hubot-slack-reactions --save
Then add hubot-slack-reactions to your
[ "hubot-slack-reactions" ]
user1>> hubot react me -1year hubot>> https://chat.slack.com/archives/general/p1d39f3463d000068
MIT © Jon Rohan