Skip to content

joeymalvinni/ChessBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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