https://github.com/brizandrew/slack-graphics-request
A simple graphics request app used to show the full range of functionality offered through the Slack APIs.
https://github.com/brizandrew/slack-graphics-request
Last synced: about 2 months ago
JSON representation
A simple graphics request app used to show the full range of functionality offered through the Slack APIs.
- Host: GitHub
- URL: https://github.com/brizandrew/slack-graphics-request
- Owner: brizandrew
- Created: 2018-06-28T06:33:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:13:38.000Z (over 2 years ago)
- Last Synced: 2025-02-01T21:41:35.282Z (4 months ago)
- Language: Python
- Size: 1.02 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Graphics Request Slack App
This repo is for a session facilitated by me at SRCCON 2018 that goes by the same name. The project was meant to create a Slack app using as many as Slack's API functionalities as possible in order to showcase the full potential of using Slack as a front-end for newsroom tools. For notes on the session go to [SESSION.md](SESSION.md)
## Installation
Create a virtualenv to store the codebase.
```bash
$ virtualenv graphics-request
```Activate the virtualenv.
```bash
$ cd graphics-request
$ . bin/activate
```Clone the git repository from GitHub.
```bash
$ git clone https://github.com/brizandrew/slack-graphics-request repo
```Enter the repo and install its dependencies.
```bash
$ cd repo
$ pip install -r requirements.txt
```Fill out [`info.py`](app/info.py) with your Slack credentials.
Start the Flask app.
```bash
$ cd app
$ python app.py
```## Routes
These are the routes that come with the Flask app and their intended uses:### Index: `/`
Used to test that the app is running### Events: `/events`
Used to handle all incoming requests about registered events being triggered.### New Graphic: `/new-graphic`
Used to handle a slash command mapped to this route which will serve a dialog.### Interactive Webhook: `/slack`
Used to handle all incoming interactive requests. This includes dialog submissions, interactive messages, and message actions.