This is a simple Discord bot created with discordjs.guide's bot guide (mainly for efficiency purposes) and a little help from ChatGPT for my AP Computer Science Principles class. Play against your friends, our fight the bot's Minimax algorithm for a fun pastime.
- Clone the repository.
git clone https://github.com/Krumbit/TicTacToeBot.git
- Create a
.env
file in the root directory and paste the following code. Be sure to replaceYOUR_TOKEN_HERE
with your bot's token.
TOKEN=YOUR_TOKEN_HERE
- Go to
src/config/config.json
and replaceclientId
with your Discord bot's client ID andguildId
with the ID of the guild in which you want the server to run in. - Install required packages with
yarn install
. - Start the bot with
yarn run start
.
/ping
- Simple ping-pong command to check if the bot is online/tictactoe bot
- Starts a Tic-Tac-Toe game against the bot/tictactoe duel <member>
- Invites the player specified to a Tic-Tac-Toe game