Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevindew/slack-headlines
A little add-on for Slack to create headline posts. Set up to run on Google App Engine
https://github.com/kevindew/slack-headlines
Last synced: 20 days ago
JSON representation
A little add-on for Slack to create headline posts. Set up to run on Google App Engine
- Host: GitHub
- URL: https://github.com/kevindew/slack-headlines
- Owner: kevindew
- License: apache-2.0
- Created: 2015-07-23T21:41:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-23T21:43:17.000Z (over 9 years ago)
- Last Synced: 2024-10-05T01:41:09.092Z (about 1 month ago)
- Language: Python
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Headlines Red Bullet Slack Add-on
This is a very simple add on for Slack. When a user runs a `/headlines [message]` command this script posts 2 messages to Slack. One to the room the user posted in and another to the designated headlines room. If they send it from the headlines room it will only be posted once.
## Stack
This project runs with Python (2.7) with dependencies installed via PIP and is set to run on Google App Engine.
Install dependencies with:
`pip install`To run in dev and deploy you need to install [Google App Engine Launcher](https://cloud.google.com/appengine/downloads). From there you can hit `run` to run it locally or `deploy` to push it live (to your designated App Engine instance).
## Env variables
Env variables for this app are handled by creating a file called `secret_keys.py` in the root directory of this project. It should look like so:
SLACK_API_TOKEN = 'asfasd-asdfasd-adsfadf-adfadsfas'
HEADLINE_TOKEN = 'ASDASDASD'
HEADLINE_CHANNEL = 'headlines'## Setting Up Slack
You need to set up a **Slash Command** for the command you want to use (for instance `/headlines`) which posted to your Google App Engine URL.
You also need to create a Slack API token to be used in the aforementioned `secret_keys.py` file.