Skip to content
/ aiwy Public

The amp-is-watching-you Reddit bot replaces AMP links on Reddit with their non-AMP counterparts, which is better for privacy.

License

Notifications You must be signed in to change notification settings

bvanrijn/aiwy

Repository files navigation

AMP Is Watching You

Build status Code style: black

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.

  1. Install Visual Studio Code. It's awesome. And it's free.
  2. Install pipenv. pip3 install pipenv --user should do the trick.
  3. Install pyenv.
$ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
  1. Run pipenv install and pipenv install --pre --dev to install the required dependencies. (pipenv will automatically install Python 3.7 for you ✨🍰✨)
  2. Update python.pythonPath in .vscode/settings.json to echo $(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 username

Run:

$ pipenv run comments
$ pipenv run submissions
$ pipenv run ignore

Troubleshooting

If you get an error ModuleNotFoundError: No module named '_ctypes' while using pipenv install, you might need to install some packages.

About

The amp-is-watching-you Reddit bot replaces AMP links on Reddit with their non-AMP counterparts, which is better for privacy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published