AMP Is Watching You
The amp-is-watching-you Reddit bot replaces AMP links on Reddit with their non-AMP counterparts, which is better for privacy.
Contributing
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 --usershould do the trick. - Install
pyenv.
$ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash- Run
pipenv installandpipenv install --pre --devto install the required dependencies. (pipenvwill automatically install Python 3.7 for you✨ 🍰 ✨ ) - Update
python.pythonPathin.vscode/settings.jsontoecho $(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.
Running the bot
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 usernameRun:
$ pipenv run comments
$ pipenv run submissions
$ pipenv run ignoreTroubleshooting
If you get an error ModuleNotFoundError: No module named '_ctypes' while using pipenv install, you might need to install some packages.