A bot to deliver a constant stream of memes to your slack group of choice. It uses Python3.6+, as well as Praw to query user defined subreddits and the Slack Python API to post messages. It can be customized with respect to subreddits scraped, scrape interval, post (to slack) interval, subreddit upvote thresholds and more.
-
Follow this guide to setup a bot for your workspace. You'll want to connect to the Real Time Messaging (RTM) API
-
Run
print_bot_id.py
to determine the ID of your bot (change the name fromautomemer
to whatever the name of the bot is) -
Fill out
ids.sh
with the relevant information and runsource ids.sh
-
Create a reddit application by following this guide
-
Add the client secret and id to a
praw.ini
file as shown here -
Modify the
Reddit
instance inscrape_reddit.py
as needed.
-
run
pip install requirements.txt
, in a virtualenv if desired -
Run
python3 setup.py
to setup the db and directory structure -
Run
python3 slackbot.py
to begin the bot