The idea is to integrate some twitter functionalities into a Slack bot. For now, it just grabs the last tweets for a particular keyword and broadcast it into different channels.
You need to get
-
Download the python-rtmbot code
git clone git@github.com:slackhq/python-rtmbot.git cd python-rtmbot
-
Install dependencies (virtualenv is recommended.)
pip install -r requirements.txt pip install tweepy
-
Configure rtmbot (https://api.slack.com/bot-users)
cp doc/example-config/rtmbot.conf . vi rtmbot.conf SLACK_TOKEN: "xoxb-11111111111-222222222222222"
-
Download and enable this plugin
git submodule add -f git://github.com/juli1/tweepybot.git plugins/tweepy
-
Create a configuration file for tweepy that indicates the slack channels and the hashtag you follow The file must be in the root directory of the rtmbot and have the twitter API access keys.
cp -f plugins/tweepy/tweepybot.conf .
and edit the tweepybot.conf file
-
Start
./rtmbot.py