Skip to content

Play any game streamed on Twitch using JavaScript function calls

Notifications You must be signed in to change notification settings

Khaleed/twitchDoesRC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitchDoesRC

This is an experiment to control any game through Twitch messages from a group of people using Node, Twitch API, IRC Protocol, SQLite.

Where possible, functional JavaScript style is adopted using map, reduce, and filter.

The aim of the project was to learn more about back-end operations using streams as a data structure and how to resolve complex architectural problems in a simple, yet elegant manner.

How To Message Someone on Twitch

Twitch implements every user as an IRC channel.

To join someone's twitch channel

irc.join("#username",[callback])

We can pass a callback to join and send a message.

Note the # before the username, this tells IRC we're trying to send a message to a users channel and not to private message a user.

Twitch does not support private messaging for bots.

Proof of Concept

Used a small game called mouse to test twitchDoesRC. A group of recursers on Twitch were able to play and guide a mouse (grey square) to the cheese (yellow sqaure) in a live demo. The game can be seen here http://khaleed.github.io/twitchDoesRC

Contributors

Kara McNair

About

Play any game streamed on Twitch using JavaScript function calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published