https://github.com/nottherealwallyx/slack-webhook-game
Random Slack game to determine stand up prio
https://github.com/nottherealwallyx/slack-webhook-game
slack slack-commands slackwebhook
Last synced: 2 months ago
JSON representation
Random Slack game to determine stand up prio
- Host: GitHub
- URL: https://github.com/nottherealwallyx/slack-webhook-game
- Owner: NotTheRealWallyx
- License: mit
- Created: 2025-01-08T13:09:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-15T10:37:45.000Z (over 1 year ago)
- Last Synced: 2025-03-31T17:56:37.452Z (about 1 year ago)
- Topics: slack, slack-commands, slackwebhook
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```sh
git clone
```
2. Navigate to the project directory:
```sh
cd standup-games
```
3. Install the dependencies:
```sh
npm install
```
## Installing Ngrok on macOS
To install Ngrok on macOS, use Homebrew:
```sh
brew install ngrok
```
## Usage
1. Start the server:
```sh
npm run start
```
2. Start Ngrok to tunnel your local server:
```sh
npm run tunel
```
3. Alternatively, you can start both the server and Ngrok concurrently:
```sh
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.