Forked from/heavily based on AndrewYatzkan/Twitch-Chat-vs-Streamer-Lichess.
-
Install Node.js.
-
Download Twitch-Chat-vs-Streamer-Lichess and navigate to the folder in Terminal (Mac/Linux) or Command Prompt (Windows).
-
Run
npm i
. Note: if you get an error, try runningsudo npm i
on Mac/Linux or running the Command Prompt as Administrator on Windows. -
Copy or rename the
config.sample.js
file toconfig.js
and adjust the values:
module.exports = {
STREAMER_TWITCH: '', // Streamer's Twitch username
STREAMER_LICHESS: '', // Streamer's Lichess username
AUTHORIZED_USERS: [], // List of usernames that can change the voting period via !setvotingperiod 42
BOT_TWITCH_OAUTH: 'oauth:...', // Bot's Twitch oauth token
BOT_LICHESS: '', // Bot's Lichess account
BOT_LICHESS_OAUTH: 'lip_...', // Bot's Lichess token
CHAT_COOLDOWN: 2000, // Minimum time between chat messages in ms (only really relevant when ACKNOWLEDGE_VOTE is enabled)
VOTING_PERIOD: 20, // Time to vote in s
ACKNOWLEDGE_VOTE: false, // Acknowledge each vote in the chat
};
You can get the twitch oauth token here.
-
Run
node index.js
to start the bot. The current votes can be viewed at localhost:3000 which can be added as a browser source to OBS. Append?transparent=true
to the URL to make the background transparent and only show the text. -
Challenge the Lichess bot. It will automatically accept challenges from the streamer's account and instructions will be sent to chat!
Ne3
resign
offer draw
oraccept draw
(separate from voting to move or resign, i.e. you can both vote to draw and for a move/resign)