This is a continuation from Part 1. You should probably read the previous post before reading this one. All of the disclaimers and warnings at the beginning of Part 1 apply here.
Go ahead and jump to Step 1 via the following:
$ git reset --hard step-1
In the previous step we laid out the data types that the BasicBot struct would need to function properly. Now, we’ll lay out the behavior for the bot. To do that we’ll start by filling out the TwitchBot interface.
For those that are unfamiliar, Twitch.tv is a live-streaming platform for all things creative and related to games. Not necessarily just video games. Content creators play board games, roll-play games (e.g. Dungeons & Dragons), and everything in between. On this platform, streamers are able to interact with a live chat room just for their channel (with a delay).
To facilitate the streamer and chat interaction, Twitch uses a variant of IRC, and provides documentation for their implementation on their Twitch Developers page. This allows developers to create chat bots that can moderate chat rooms, interact with chatters, and automate certain tasks for streamers. There are several well known ones, with many features, but the chat bot built in this walkthrough won’t be as complex.
I’ve frequently heard questions about getting started with Git and utilizing GitHub pages. Things like, where to start and if there are any good resources to follow. It got to a point where I deemed it worthy of a tutorial! In this video I touch on: