This bot was created to help moderate the Lichess45+45 league.
It has a simple interface that integrates our Slack team, with Lichess and Website HTTP API.
If you have any issues, reach out to me here on github or on Slack.
Cheers. Andrew W. Haddad
- Clone this repo
- Install vagrant
- Use the included Vagrantfile to bring up the environment -
vagrant up
,vagrant ssh
, andcd chesster
- Install the npm modules -
npm install
- Generate a bot token in your Slack Team's Services and Customization.
cp config/slack_token.js.example config/slack_token.js
- update config/slack_token.js with your token
cp config/heltour_token.js.example config/test_heltour_token.js
cp config/heltour_token.js.example config/heltour_token.js
- update config/config/test_heltour_token.js with a token from the heltour site
- Migrate databases:
npm run migrate config/testconfig.js
- Install your bot's token in the start script, start_chesster.
- Start the bot.
./bin/start ../config/config.js
Run this to test the bot against the staging site:
./bin/start ../config/testconfig.js
Run these before submitting a PR:
npm test
npm run lint
npm run hint
This bot utilizes the heltour api from this repo: https://github.com/cyanfish/heltour/ You will need to create a token from an installation of this app in order to access and manipulate data.
The bot should now be available for addition to your Slack Team.