Connect to IRC to send inputs to any program, Twitch Plays Pokemon style. (Windows, Linux, OSX)
MIT License
(inspired by TwitchPlaysPokemon)
Connect to Twitch's messaging service, (TMI) via tmi.js
(previously using IRC) to send inputs to a program and stream it, TwitchPlaysPokemon style. Should support linux/windows/mac.
Pokemon on Windows
Pokemon Red running in a Ubuntu 13.10 VM
On Windows, the program has to be focused in order to send keyboard inputs so you won't be able to use your computer at the same time (unless you run the program in a virtual machine).
git clone https://github.com/hzoo/TwitchPlaysX.git
node_modules
in the created folder: npm install
apt-get install xdotool
config.js
if you need to change the options: TWITCH_CHANNEL=mychannelhere npm start
npm start
CONFIG_PROGRAM_NAME
: Find out the title of the window that you will be sending key inputs to (may need to check Task Manager to find out)
VisualBoyAdvance
, Desmume
notepad.exe
it would be "Notepad" or "Untitled - Notepad".npm test
with Notepad opened to see if it sends a key to it.TWITCH_CHANNEL
: the Twitch channel you want to listen for messages on (twitchplayspokemon
)defaultKeyMap
in keyHandler.js
, keys.py
for windows)https://github.com/hzoo/ChatPlays/ used MutationObservers in the browser
Using IRC lets you get all the messages; you can't always get all messages through the browser (quickly or consistently) so this is a better approach overall as others have done.
Feel free to give suggestions or report bugs!