From 53ece4601a11dc62e5fdcaddea15f4b77f17a4d3 Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Fri, 19 Nov 2021 13:21:35 +0100 Subject: [PATCH] Update README.md --- README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b12d5e8..a70afbc 100644 --- a/README.md +++ b/README.md @@ -332,9 +332,18 @@ docker run \ tkdalex/twitch-channel-points-miner-v2 ``` -`$(pwd)` Could not work on Windows (cmd), please us the absolute path instead, like: `-v /path/of/your/cookies:/usr/src/app/cookies`. +`$(pwd)` Could not work on Windows (cmd), please us the absolute path instead, like: `/path/of/your/cookies:/usr/src/app/cookies`. If you don't mount the volume for the analytics (or cookies or logs) folder, the folder will be automatically created on the Docker container, and you will lose all the data when it is stopped. -If you don't have a cookie or It's your first time running the script, you will need to login to Twitch and start the container with `-it` args. +If you don't have a cookie or It's your first time running the script, you will need to login to Twitch and start the container with `-it` args. If you need to run multiple containers you can bind different ports (only if you need also the analytics) and mount dirrent run.py file, like +```sh +docker run --name user1-v $(pwd)/user1.py:/usr/src/app/run.py:ro -p 5001:5000 tkdalex/twitch-channel-points-miner-v2 +``` + +```sh +docker run --name user2-v $(pwd)/user2.py:/usr/src/app/run.py:ro -p 5002:5000 tkdalex/twitch-channel-points-miner-v2 +``` + +About the *Docker* version; the community has always shown great interest in the Docker version of the project. Especially [@SethFalco](https://github.com/SethFalco) ([#79](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/79)), [@KamushekDev](https://github.com/KamushekDev) ([#300](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/300)), [@au-ee](https://github.com/au-ee) ([#223](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/223)) they showed their ideas. I've decided to merge the PR from [@RakSrinaNa](https://github.com/RakSrinaNa) ([#343](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/343)) because is one of the most active user of the project and the PR was the only one with a Continuous Integration (CI). ### Limits > Twitch has a limit - you can't watch more than two channels at one time. We take the first two streamers from the list as they have the highest priority. @@ -524,11 +533,10 @@ pkg install python git rust libjpeg-turbo libcrypt ndk-sysroot clang zlib` LDFLAGS="-L${PREFIX}/lib/" CFLAGS="-I${PREFIX}/include/" pip install --upgrade wheel pillow ``` -Clone this repository +**(1 way):** Clone this repository `git clone https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2` -(2 way): -Download sources from GitHub and put it into your Termux storage +**(2 way):** Download sources from GitHub and put it into your Termux storage Now you can enter the directory with our miner, type this command: `cd Twitch-Channel-Points-Miner-v2` @@ -542,8 +550,9 @@ When you have configured it now we can rename it (optional): We have to also install dependences required to run miner: `pip install -r requirements.txt` -Now when we did everything we can run miner: -`python run.py` +**(3 way):** `pip install Twitch-Channel-Points-Miner-v2` + +Now when we did everything we can run miner: `python run.py` Read more at [#92](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/92) [#76](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/76)