In this session, we look into how we can account for stream state when the bot boots up. It is handled by making an update to the Stream Manager so that we can leverage the same code in multiple places to build the structure that is sent out via Pusher.io. Afterwards, we spend some time updating our Session Chat Message model to no longer do anything with author display name or author avatar. Finally, we add a refresh method to our AppTwitchApi so we can safely access our access token on connect.
Calling it a chat bot is a disservice. Connecting to Twitch, YouTube, Discord, Pusher and AMQP, this little bot will become the very core of activity monitoring and user engagement for Astrocasts.