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.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc96bdd82f02cee41ee5c90223e0e90604720327151c898dc7cf53a0cee480f7 |
|
MD5 | 5c73003c5223efabf290b81a715c16da |
|
BLAKE2b-256 | 1760626fa685444860c4fe67688a34f01200af770da7d05f5af2dd7c0a260e8d |