Open source twitch bot which allows querying the Chess.com's Published-Data API.
Currently this bot is under active development and very immature.
The plan is to implement as much commands as possible by using the Chess.com's API and then provide free hosted service for the bot where the streamer will just do a few clicks to configure it and make it join their channel.
You can reach out to me via:
- Email:
dimitar@sliceofcode.com
- Discord: https://discord.gg/26kwx8S
- Twitch Whisper:
slice_of_code
- !help
- !rating <user>
- !rating <user> <type>
- !profile <user>
- !online <user>
Make sure you have NodeJS 10.15 installed (and commands node
, npm
and npx
work in your terminal).
You can create a new username on Twitch, or use your existing one to test this out.
- Clone this repository (use
master
branch for non-development purposes) - Copy
config/config.example.json
toconfig/config.json
and edit theCHANGEME
values in the file - Set the channel name in the
channels
array to be your Twitch username prefixed by#
. - Set the
identity.username
value to be your Twitch username. - Log in on Twitch, go to https://twitchapps.com/tmi/ and click on the "Connect with Twitch" button.
This will generate a password which looks like
oauth:aaabbbcccdddeeefffggghhhiiihhh
. Set that as theidentity.password
value. - Open the Terminal, and run the following command to build the bot:
npm install
- Execute the command
npm start
to run the chess twitch bot - Open your Twitch channel in the browser and check out the bot commands! :)
Example for the minimal config (config/config.json
) required considering Twitch username is "ChessTwitchBot":
{
"channels": [
"#ChessTwitchBot"
],
"identity": {
"username": "ChessTwitchBot",
"password": "oauth:aaabbbcccdddeeefffggghhhiiihhh"
}
}
- Chess.com Published-Data API
- TwitchJS - A community-centric, community-supported version of tmi.js
MIT License
Twitch Chess Bot (twitch-chess-bot) is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Twitch, Chess.com or any of their subsidiaries or affiliates. The name "Twitch" as well as related names, marks, emblems and images are registered trademarks of Twitch. The name "Chess.com" as well as related names, marks, emblems and images are registered trademarks of Chess.com.