Skip to content

NotTheRealWallyx/Slack-Webhook-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Standup Games

This is a simple Node.js server that handles Slack Slash Commands to play games like rolling a dice or drawing a card.

Prerequisites

  • Node.js
  • npm
  • Ngrok

Installation

  1. Clone the repository:

    git clone <repository-url>
  2. Navigate to the project directory:

    cd standup-games
  3. Install the dependencies:

    npm install

Installing Ngrok on macOS

To install Ngrok on macOS, use Homebrew:

brew install ngrok

Usage

  1. Start the server:

    npm run start
  2. Start Ngrok to tunnel your local server:

    npm run tunel
  3. Alternatively, you can start both the server and Ngrok concurrently:

    npm run start-with-tunel
  4. Configure your Slack workspace to use the server for Slash Commands:

    • /roll to roll a dice.
    • /draw to draw a card.

Endpoints

  • POST /slack/commands: Handles Slack Slash Commands.

Example Commands

  • /roll: Rolls a dice and returns a random number between 1 and 6.
  • /draw: Draws a random card from a standard deck.

License

This project is licensed under the MIT License.

About

Random Slack game to determine stand up prio

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors