This is a simple Node.js server that handles Slack Slash Commands to play games like rolling a dice or drawing a card.
- Node.js
- npm
- Ngrok
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd standup-games -
Install the dependencies:
npm install
To install Ngrok on macOS, use Homebrew:
brew install ngrok-
Start the server:
npm run start
-
Start Ngrok to tunnel your local server:
npm run tunel
-
Alternatively, you can start both the server and Ngrok concurrently:
npm run start-with-tunel
-
Configure your Slack workspace to use the server for Slash Commands:
/rollto roll a dice./drawto draw a card.
POST /slack/commands: Handles Slack Slash Commands.
/roll: Rolls a dice and returns a random number between 1 and 6./draw: Draws a random card from a standard deck.
This project is licensed under the MIT License.