The amp-is-watching-you Reddit bot replaces AMP links on Reddit with their non-AMP counterparts, which is better for privacy.
Get up to speed with the Aiwy project. Some basic Python knowledge is required.
- Install Visual Studio Code. It's awesome. And it's free.
- Install
pipenv
.pip3 install pipenv --user
should do the trick. - Install
pyenv
.
$ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- Run
pipenv install
andpipenv install --pre --dev
to install the required dependencies. (pipenv
will automatically install Python 3.7 for you ✨🍰✨) - Update
python.pythonPath
in.vscode/settings.json
toecho $(pipenv --venv)/bin/python
.
...and when that's all done, run code .
and work on an interesting issue or a new feature. All help is welcome.
Create a file env.py
:
# Generate these using https://praw.readthedocs.io/en/latest/getting_started/authentication.html
client_id = "..."
client_secret = "..."
password = "..."
admin = "..." # Your personal user name
user_agent = f"aiwy/1.6.0 by /u/{admin}"
username = "amp-is-watching-you" # Your bot's username
Run:
$ pipenv run comments
$ pipenv run submissions
$ pipenv run ignore
If you get an error ModuleNotFoundError: No module named '_ctypes'
while using pipenv install
, you might need to install some packages.