Reddit Echo
Project description
===========
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
.. |TravisCI| image:: https://travis-ci.org/DankCity/recho.svg?branch=master
:target: https://travis-ci.org/DankCity/recho
.. |CoverageStatus| image:: https://coveralls.io/repos/github/DankCity/recho/badge.svg
:target: https://coveralls.io/github/levi-rs/recho
.. |CodeHealth| image:: https://landscape.io/github/DankCity/recho/master/landscape.svg?style=flat
:target: https://landscape.io/github/DankCity/recho/master
.. |PyPIVersion| image:: https://badge.fury.io/py/recho.svg
:target: https://badge.fury.io/py/recho
.. |PythonVersions| image:: https://img.shields.io/pypi/pyversions/recho.svg
:target: https://wiki.python.org/moin/Python2orPython3
(Optional) Create a virtual environment
=======================================
Its useful to create a virtual environment for installing and running recho
.. code-block:: bash
$ sudo pip install virtualenv
$ cd ~
$ virtualenv .venvrecho
$ source .venvrecho/bin/activate
Register Your App
=================
Register your app with Reddit, and jot down your Client ID and Secret
`<https://ssl.reddit.com/prefs/apps>`_
#. Click "create another app" button at the bottom
#. Click "script" radio button
#. Fill in the remaining boxes, the actual values don't matter
#. Click create, and record Client ID and Secret
Installation
============
Install from PyPI using pip:
.. code-block:: bash
$ pip install --update recho
Add the configuration file
.. code-block:: bash
$ touch ~/.recho.ini
Write the following into that file, adding your Slack token and channel
.. code-block:: bash
[praw]
client_id: <Reddit Client ID>
client_secret: <Reddit Client Secret>
[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:
.. code-block:: bash
$ sudo vi /etc/crontab
If you use a virtual environment:
.. code-block:: bash
* * * * * user source ~/.venvrecho/bin/activate && recho acidtwist
Otherwise you can simply call recho directly
.. code-block:: bash
* * * * * user recho acidtwist
Home-page: https://github.com/levi-rs/recho
Author: Levi Noecker
Author-email: levi.noecker@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Description: UNKNOWN
Keywords: reddit slack bot slackbot recho chat chatbot
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Communications :: Chat
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
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
.. |TravisCI| image:: https://travis-ci.org/DankCity/recho.svg?branch=master
:target: https://travis-ci.org/DankCity/recho
.. |CoverageStatus| image:: https://coveralls.io/repos/github/DankCity/recho/badge.svg
:target: https://coveralls.io/github/levi-rs/recho
.. |CodeHealth| image:: https://landscape.io/github/DankCity/recho/master/landscape.svg?style=flat
:target: https://landscape.io/github/DankCity/recho/master
.. |PyPIVersion| image:: https://badge.fury.io/py/recho.svg
:target: https://badge.fury.io/py/recho
.. |PythonVersions| image:: https://img.shields.io/pypi/pyversions/recho.svg
:target: https://wiki.python.org/moin/Python2orPython3
(Optional) Create a virtual environment
=======================================
Its useful to create a virtual environment for installing and running recho
.. code-block:: bash
$ sudo pip install virtualenv
$ cd ~
$ virtualenv .venvrecho
$ source .venvrecho/bin/activate
Register Your App
=================
Register your app with Reddit, and jot down your Client ID and Secret
`<https://ssl.reddit.com/prefs/apps>`_
#. Click "create another app" button at the bottom
#. Click "script" radio button
#. Fill in the remaining boxes, the actual values don't matter
#. Click create, and record Client ID and Secret
Installation
============
Install from PyPI using pip:
.. code-block:: bash
$ pip install --update recho
Add the configuration file
.. code-block:: bash
$ touch ~/.recho.ini
Write the following into that file, adding your Slack token and channel
.. code-block:: bash
[praw]
client_id: <Reddit Client ID>
client_secret: <Reddit Client Secret>
[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:
.. code-block:: bash
$ sudo vi /etc/crontab
If you use a virtual environment:
.. code-block:: bash
* * * * * user source ~/.venvrecho/bin/activate && recho acidtwist
Otherwise you can simply call recho directly
.. code-block:: bash
* * * * * user recho acidtwist
Home-page: https://github.com/levi-rs/recho
Author: Levi Noecker
Author-email: levi.noecker@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Description: UNKNOWN
Keywords: reddit slack bot slackbot recho chat chatbot
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Communications :: Chat
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
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
recho-1.0.0.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for recho-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aafe06bd9df9e86007668eb91af70a7b61d8899639facee58633f31703925253 |
|
MD5 | 80fe55dfe97c4aeda2e3ff3d812b7b8e |
|
BLAKE2b-256 | e5441d71d90562e40102f93c2501ba8e28658e7d92526bd2b49d1a2346b5eba5 |