SurrenderChaos / twitch-js-chatbot-example

An example chatbot using WebSockets in JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitch Chatbot Hackathon

Welcome to the chatbot hackathon! We’re looking for a bot that anyone can use to make chat more fun. We’ve seen games, we’ve seen song requests, we’ve seen loyalty points, but we haven’t seen anything that creates content. What about a bot that scrapes the web for fun facts about the game a broadcaster is playing? Or finds and links to a relevant GIF that captures a moment? Maybe a bot that takes the pulse of Twitch and finds the most popular meme of the last 10 minutes? What kind of content would make chat more fun, and how could a bot find it and surface it?

You'll find some links below to help you on your journey to creating an awesome chatbot for Twitch. You will also find the code to a simple JavaScript chatbot that can help demonstrate how to interact with chat on Twitch. This particular bot uses JavaScript, but you can use any language you would like. The project structure section will give you a quick overview of this code.

Good luck and have fun!

Important links

Structure

simple-chatbot.html Provides the user interface for the leaderboard and calls into the chatClient to connect to Twitch chat.

simple-chatbot.js Provides all of the inner workings for the chat bot including connecting, sending user credentials, and joining the correct channel. The leaderboard rendering code is also inside of this file.

leaderboard.css Makes the leaderboard look...better than an unformatted table. Kappa.

About

An example chatbot using WebSockets in JavaScript.


Languages

Language:JavaScript 62.7%Language:HTML 20.4%Language:CSS 16.9%