The project started on live-stream where I started using some AI tools like V0, or Loveable to create an electronJS based app to create a hot-keys triggering software from my live stream's chat. Since I've been using Restream IO for streaming, I had to figure out a way to respond to the chat in a unified way instead of having a solution for multiple platforms. I currently stream on YouTube, Facebook, LinkedIn, and TikTok. Gathering messages from all of them was a challenge. So I decided to use the Restream IO's embedded chat feature. Which is basically a URL with a token that you can open on Chrome to see chat messages from all platforms, and respond to them as well.
In ElectronJS, we open a browser window in the background with that URL. And then we observe the messages, if they contain a command, we try to look into our application's list of commands the user has created already. If a match is found, the respective hot-key is triggered, or the respective sound file is played.
- clone the repository
- copy the
.env.example
file and rename to.env
at the root of this project- Add the value of the
RESTREAM_CHAT_LINK
variable. It should look something likehttps://chat.restream.io/embed?token=<TOKEN_VALUE>
- Add the value of the
- Run
npm install
from the root of this project - Run npm start
- run
npm run make
to create the binaries for production