From 3f0fc533e125bd8dffa48d2ee6d624fd964cd931 Mon Sep 17 00:00:00 2001 From: Drugsosos <44712637+Drugsosos@users.noreply.github.com> Date: Thu, 14 Jul 2022 22:37:15 +0300 Subject: [PATCH] changed README.md --- README.md | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 028dcd4..f8b5c02 100644 --- a/README.md +++ b/README.md @@ -37,10 +37,28 @@ The only original thing being done is the editing and gathering of all materials ## Installation 👩‍💻 -1. Clone this repository -2. Run `pip install -r requirements.txt` - -3. Run `python -m playwright install` and `python -m playwright install-deps` +1. [Clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) this repository +2. Ensure you have pip installed by running + ``` + python3 -m ensurepip + ``` +3. Install [Poetry](https://github.com/python-poetry/poetry) + ``` + pip3 install poetry + ``` + +4. Install project's dependencies + ``` + poetry install + ``` + +6. Install Playwright's dependencies + ``` + python -m playwright install + ``` + ``` + python -m playwright install-deps + ``` **EXPERIMENTAL!!!!** @@ -50,11 +68,12 @@ On MacOS and Linux (debian, arch, fedora and centos, and based on those), you ca This can also be used to update the installation -4. Run `python main.py` -5. Visit [the Reddit Apps page.](https://www.reddit.com/prefs/apps), and set up an app that is a "script". -6. The bot will ask you to fill in your details to connect to the Reddit API, and configure the bot to your liking -7. Enjoy 😎 -8. If you need to reconfigure the bot, simply open the `config.toml` file and delete the lines that need to be changed. On the next run of the bot, it will help you reconfigure those options. +7. Run\ +```poetry run python main.py``` +8. Visit [the Reddit Apps page.](https://www.reddit.com/prefs/apps), and set up an app that is a "script". +9. The bot will ask you to fill in your details to connect to the Reddit API, and configure the bot to your liking +10. Enjoy 😎 +11. If you need to reconfigure the bot, simply open the `config.toml` file and delete the lines that need to be changed. On the next run of the bot, it will help you reconfigure those options. (Note if you got an error installing or running the bot try first rerunning the command with a three after the name e.g. python3 or pip3)