go-chat-bot / bot

IRC, Slack, Telegram and RocketChat bot written in go
MIT License
826 stars 195 forks source link

Slack: Add methods to directly add or remove reactions #117

Closed toolateforteddy closed 5 years ago

toolateforteddy commented 5 years ago

These methods are simple helper methods to expose Slack emoji reactions to bot commands. Any command that wants to call these methods obviously is responsible for ensuring that their command is only used in Slack use cases.

My favorite use case for this is to have the bot auto react to usages of @here with :please-no-at-here:.

Future Plans: Build a full Reaction Router pattern so that the bots can register commands to run when a message is tagged with a reaction. For example: https://reacji-channeler.builtbyslack.com/

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 96.97% when pulling a5a026e35ffe05986b53243ade94544f17e9850c on toolateforteddy:slackReactions into 51bcba0468630bfec578c5dbeef675f3dbbee567 on go-chat-bot:master.