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

joeymalvinni/ChessBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published