Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Latest commit

 

History

History
55 lines (39 loc) · 1.4 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.4 KB

Warning

As of July 22, 2024, this project has not received work in over a year. Due to a lack of updates, this project is being archived.

ChessBot

A sophisticated Discord chess bot, written with Discord.js and Node.js.

chess bot in a game

Installation

Clone this repo:

git clone https://github.com/joeymalvinni/ChessBot.git
cd ChessBot

Install necessary node modules with yarn:

yarn install

Create the .env file with the fields:

TOKEN="bot token"
TEST_GUILD_ID="test server id"

Run the bot:

npm start

Commands

/userinfo - Replies with user information.
/serverinfo - Replies with server information.
/ping - Ping ChessBot for bot and websocket latency.
/challenge ${@player} - Challenge player to game of chess. Person must accept challenge within 15 seconds.
/games - Lists current games being played.
/move - Make a move in your current game.
/leaderboard - Replies with leaderboard table, sorted by ELO.
/requestDraw - Sends opponent a draw request for the current game.
/resign - Resigns current game.

Authors

The author of ChessBot is Joey Malvinni

List of all contributors

License

Apache 2.0