Skip to main content

Post the Reddit users's latest comment(s) to a specific Slack channel

Project description

Reddit Echo

Reposts Reddit posts from a target user to a specific slack channel

PyPIVersion TravisCI CoverageStatus CodeHealth PythonVersions

Helper class to make working with Selenium recho waits easier and more accessible

(Optional) Create a virtual environment

Its useful to create a virtual environment for installing and running recho

$ sudo pip install virtualenv
$ cd ~
$ virtualenv .venvrecho
$ source .venvrecho/bin/activate

Installation

Install from PyPI using pip:

$ pip install --update recho

Add the configuration file

$ touch ~/.recho.ini

Write the following into that file, adding your Slack token and channel

[slack]
# Follow instructions at https://my.slack.com/services/new/bot
token: <Your slack token>
channel: <your channel name>

Note that the channel name is without the hash. general instead of #general

Running Recho

Recho is designed for use with cron. Simply add an entry similar to the one below:

$ sudo vi /etc/crontab

If you use a virtual environment:

* * * * * user source ~/.venvrecho/bin/activate && recho acidtwist

Otherwise you can simply call recho directly

* * * * * user recho acidtwist

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recho-0.1.4.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

recho-0.1.4-py2.py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page