Skip to content
A bot to make Reddit safer for work. Summon this bot on Reddit by mentioning /u/RiskyClickerBot, or commenting with the phrase 'risky click'.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
embeddings
.buildpacks
Aptfile
Changelog
ClarifaiBot.py
GfycatBot.py
HiveBot.py
ImgurBot.py
LICENCE.MD
Procfile
README.MD
RedditBot.py
SlaveBot.py
TODO
VideoBot.py
blacklist.json
pyav.conf
requirements.txt
runtime.txt
vars.sh

README.MD

/u/RiskyClickerBot for Reddit

A quick rundown of what the bot does is here.

A more in-depth version, with a few code snippets is also available.

Getting Started

git clone https://github.com/SreenivasVRao/RiskyClickerBot.git
cd RiskyClickerBot
pip install -r requirements.txt

You will need to edit vars.sh to set the various environment variables. These values are retrieved by creating API keys.

For Reddit - go here. This tutorial is a great start.

For Imgur - Follow this video - between the 4:00 and 6:00 minute marks, the video explains how to get the client id and secret which is all you need.

For Clarifai - This article will help. I have set the scope to 'all' for my API key, although it can probably work with just the prediction scope.

Once you have the keys ready in vars.sh:

. vars.sh

will load the variables in your current shell

Following that, you need to launch the bot:

python bot.py

Running the bot on Heroku is possible by using the --heroku switch. However, Reddit usually frowns on duplicate bots. On the other hand, I'll gladly take pull requests for this bot. :)

Acknowledgements

praw (c) 2016, Bryce Boe - licensed under BSD 2-clause "Simplified" License imgurpython (c) 2014 Imgur LLC - licensed under MIT license. clarifai (c) 2016 Clarifai, Inc. - licensed under Apache License, Version 2.0 bmemcached (c) 2011 Jayson Reis - licensed under MIT license.

You can’t perform that action at this time.