Hello people!!! Welcome to cream games! My first slack bot made using slack bolt and type-script! With this, you can play games with the bot to pass time!!
- Tic-Tac-Toe (Easy)
- Tic-Tac-Toe (Meduim)
- Tic-Tac-Toe (Impossible)
- Rock Paper Scissors
- Connect 4
- Coin Flip
- Idk more (give me ideas)
- Node
- Typescript
- Slack Bolt (Library)
/cream-games- Lists out the games available/cream-games tictactoe- Starts a tic-tac-toe game/cream-games rps- Starts a rock paper scissors game, first to 3 wins!
- Create a slack bot on https://api.slack.com wih socket mode turned on.
- Clone this repository locally
git clone https://Sankarshan-T/creams-games - Create a .env file with all required keys.
.env:
SLACK_SIGNING_SECRET=...
SLACK_BOT_TOKEN=xoxb-.....-.....-.....
SLACK_APP_TOKEN=xapp-.-....-.....-....
.
- Install all dependencies on the root directory with
npm install - Once everythings installed, run the bot using
npm run dev!! - If you did everything right, you will see something like
Yooo cream games is atually running!!on the console!
I used chatGPT to get familiar with the slack bolt library (cuz it my first slackbot), but rest all was done by me (I love type-script!!)