I’ve written a few Twitch bots and I’ve almost always used whatever library comes up first in a Google search. Using a library is great for getting things started but I’ve found that I usually run into issues with the library later on. Ultimately I’ve realized that for something simple like a Twitch bot a library isn’t necessary.
Twitch bots are very simple. They use Internet Relay Chat Protocol(IRC) to communicate with Twitch’s servers. This is a simple protocol that uses plain text messages as commands. For example sending a message is as simple as writing
PRIVMSG #twitchchannelname :message goes…