Name: databot
Owner: datamade
Description: :crystal_ball: Slackbot for datamade
Created: 2015-05-08 13:42:26.0
Updated: 2015-10-21 22:12:44.0
Pushed: 2015-10-22 13:55:49.0
Size: 144
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A Slack bot for DataMade.
You need an Auth token for the team that you're wanting to post amazing things into. For the lunch ideas, you'll also need various Yelp tokens.
To get an auth token
Getting Yelp tokens
Run the app
This app was developed using Python 3.4.3 but I'm pretty sure it'll work in Python 2.7.x as well. Either way, get yourself a virtual enviromnent and install the requirements:
ing vanilla virtualenv
rtualenv venv
urce venv/bin/activate
p install -r requirements.txt
ing virtualenvwrapper
virtualenv bot
p install -r requirements.txt
In order for the app to run, it needs the various keys and tokens that you just got set as environmental variables. So, before you can run it, you'll need to set those:
port SLACK_AUTH_TOKEN='theauthtoken'
port YELP_CONSUMER_KEY='key'
port YELP_CONSUMER_SECRET='secret'
port YELP_TOKEN='token'
port YELP_TOKEN_SECRET='token_secret'
To make those stick around between terminal sessions, you can add those lines
into your .bashrc
file (or similar) and source
it:
m ~/.bashrc # add those to export statements
urce ~/.bashrc
Now that all that is setup, you can run the app by doing python app.py
with
your virtualenv activated.