Twitch API in PHP

I wonder if there’s a way to code a bot in PHP or perhaps JavaScript. Where do people learn the API to make a bot? Any help would be appreciated!

Twitch uses IRC as a chat. You can download any PHP bot for IRC and log in on any Twitch channel.

TMI (Twitch Messaging Interface) is based IRC and works likes IRC in most cases but it should be understood that it doesn’t follow IRC RFC and some work will be necessary in some cases.

Hey, @adam_hope!

Here is some very simple JavaScript code I created for a chatbot hack-a-thon at UCSD. It uses IRC over WebSockets instead of directly through the IRC protocol, but it could be illustrative for you. :slight_smile:

-D

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.