This is the source for running the website currently live at https://www.tppamie.com/
These are rough instructions and there may be some mistakes.
You will need require.js.
cd www/js
r.js.cmd -o .\build.js
creates the directory /www-build
with optimized/minified js.
This server provides live match updates for the visualizer via socket.io.
Requires node.js.
Copy auth_socketIO_example
to auth_socketIO
and enter any password. Both the socket.io server and python will use the password in this file to authenticate pushing new match data.
cd node
node index.js
This script runs indefinitely. It:
- connects to twitchplayspokemon's twitch chat
- watches chat messages to know when a match is starting
- downloads match data from twitchplayspokemon.tv/api
- reformats the data
- emits the data to the socket.io server for transmission
- posts an in-chat message with the visualizer URL
Requires python 2.7 with packages yaml and socketIO.
Copy oauth_example.json
to oauth.json
and enter your twitch credentials.
cd bot-liveMatchUpdater
python liveMatchUpdater.py