- Node (v14+ should work)
- Python 3.6+
- Install Node dependencies:
npm install
- Optional: Create a virtual env:
python3 -m venv cr_env
and activate itsource cr_env/bin/activate
- Install Python dependencies:
pip install -r requirements.txt
- Create a zulip bot, download the
zuliprc
file, and but it in the base directory. - Copy
config.base.json
toconfig.json
and adjust config values as needed.- Set
zulip.stream
to the stream where the bot should respond to queries. - If you didn't create a venv or named it differently, set
python_bin
to the Python binary to run CR with (python3
to use the system Python,path/to/venv/bin/Python
for a venv) - Set
engine.path
to the path where the Stockfish binary is located
- Set
npm run dev
for dev. Will watch for changes and restart.npm run build
to build prod distnpm start
to run (after build)- Or use
CR-bot.service
with systemd