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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for recho-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f47b3357ba9ecca7e853821219dd3d34d5de4b16d54f65928dba79a60d55cf9 |
|
MD5 | d9e3bfae4ecd9339720cb4f5128019b5 |
|
BLAKE2b-256 | 3c83a10ffbb30cd8e71da87360cf753be8e38d8de0e5d60448a92c372f0dbe02 |