I made this bot to help a friend of mine, TVMarvin, which had some problems when everyone on his stream was trying to play with him so I came up with this solution.
Basically this bot connects to twitch chat and recognizes the command !jogar <nick>
which let the viewers enter the list to play with the streamer by sending their in-game nickname.
This project is hosted on Heroku because it needs a good internet connection to ensure the communication between Twitch and the bot itself.
The bot uses Node.js and Yarn as a package manager.
The bot runs along with StreamElements so it can check if the user who entered the command in chat is able to play with the streamer. The bot is configured to check if the viewer as at least 4 hours of watchtime on the channel.
The bot updates a public Google Sheets' sheet which has the list of the players who are going to play next.
📜 Sheet