Building a Twitch Chat Game in Rust part 2 - Twitch Live Stream

Subscribers:
950
Published on ● Video Link: https://www.youtube.com/watch?v=1DiEiHgzzRM



Duration: 1:10:00
96 views
0


In this new series, we continue building a Twitch chat game live.

The idea is to be able to interact with the chat, ask questions, and receive answers from the chat

We have some ideas on the actual interactions but for now, we have been focused on getting the basics working: being able to connect to the Twitch Chat API and start to receive messages.

In this stream, we spent most of our time making sure we could parse all the different kinds of messages coming from Twitch. We also implemented a hello message to all the people joining the channel and we also implemented the PONG command (to reply to ping messages).

All the parsing code is done with the amazing `nom` library ( https://crates.io/crates/nom).

All the code is available on GitHub: https://github.com/lmammino/twitch-chat-bot (specific changes from this session in this PR: https://github.com/lmammino/twitch-chat-bot/pull/1 )

For more live streams, check out our Twitch profile at https://twitch.tv/loige.







Tags:
Rust
Error Handling
Environment Variable
AWS
Live Stream
Code
GitHub
Rust programming
Live coding
Twitch profile
Code repository
Software development
Web development
nom
parsing
websockets
async
twitch
api
chat
game