bad chessh bot using js-chess-engine
Go to file
2023-11-21 17:57:10 -07:00
src squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00
.env.sample squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00
.eslintrc squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00
.gitignore squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00
.prettierrc squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00
docker-compose.yml squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00
Dockerfile squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00
LICENSE squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00
package-lock.json squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00
package.json squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00
README.md squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00
tsconfig.json squash everything since there was profanity in the commit log and maybe people won't like that 2023-11-21 17:57:10 -07:00

example chessh bot

this is a simple CheSSH bot written in TypeScript using js-chess-engine. it's not very good.

the bot "entrypoint" is at /src/api/index.ts.

environment

BOT_TOKEN: the token generated by CheSSH for which the bot will be deployed
CHESSH_MOVE_PATH: the path to POST an attempted move in the form "<from square><to square>" according to the CheSSH contract to the game with id :gameId.