https://github.com/ffont/freesound-slack-command
Slack slash command to play Freesound sounds
https://github.com/ffont/freesound-slack-command
Last synced: about 1 year ago
JSON representation
Slack slash command to play Freesound sounds
- Host: GitHub
- URL: https://github.com/ffont/freesound-slack-command
- Owner: ffont
- License: apache-2.0
- Created: 2018-08-01T15:07:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T08:37:01.000Z (almost 8 years ago)
- Last Synced: 2025-01-31T10:15:10.167Z (over 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# freesound-slack-command
Slack app with slash command for playing sounds from Freesound
## Dev & deploy instructions
### Build & run
The following environment variables **must** be set before running using a `.env` file:
* `FS_API_KEY`: Freesound API key from https://freesound.org/apiv2/apply.
* `SLACK_VERIFICATION_TOKEN`: Slack app verification token (see https://renzo.lucioni.xyz/serverless-slash-commands-with-python/).
* `SLACK_TEAM_ID`: Slack team ID (see https://renzo.lucioni.xyz/serverless-slash-commands-with-python/).
The following environment variables are optional:
* `HOST`, `PORT`: Host and port for the web app (defaults to `0.0.0.0` and `5000`).
* `BASE_URL`: Base URL to build app URLs (defaults to `http://localhost:5000/`)
* `DEBUG`: Flask debug setting flag (defaults to `True`).
* `APPLICATION_ROOT`: Path of the application to be added to the BASE_URL.
To run the app use:
```docker-compose up```