Building a Twitch.tv Chat Bot with Go – Part 2

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.

Step 1

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.

Read on! “Building a Twitch.tv Chat Bot with Go – Part 2”

Building a Twitch.tv Chat Bot with Go – Part 1

Part 2

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.

Read on! “Building a Twitch.tv Chat Bot with Go – Part 1”