Earlier this year I attended a Slack Session called Building your first Slack integration. It gave me a ton of ideas. Naturally, I decided to turn my office lamp into a mood ring as dictated by the emoji in my Slack status.
Here’s the mood ring in action:
Under the hood
Once I change my status, my Glitch app will parse the emoji from the response. Next, it finds a color value based on
mood.json. This file maps emoji with a hex value. Finally, the color is sent to the LIFX API where it sets my light bulb.
This was a really fun way to experiment both with Glitch and the Slack Events API.
You can check out the code on Glitch and the README to learn how I configured my Slack app.