I'm having trouble finding documentation on how to implement Slack event subscription with lita. Does anyone have some example code? Specifically, I'd like lita to perform an action on the reaction_added event.
Right now, I've pretty much been relying on routes like this:
route(/:news:/, :save_news, help: { ":news:" => "Save a message for today's news brief."})
def save_news(response)
save_message(response)
response.reply("Message saved!")
end
I'm having trouble finding documentation on how to implement Slack event subscription with lita. Does anyone have some example code? Specifically, I'd like lita to perform an action on the
reaction_added
event.Right now, I've pretty much been relying on routes like this: