From d2cc6891edef4fbd10d68c94adda10ed3de978a7 Mon Sep 17 00:00:00 2001 From: piair338 <74496300+piair338@users.noreply.github.com> Date: Fri, 23 Sep 2022 16:41:32 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6af8996..2c48df5 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,20 @@ A Microsoft reward automator, designed to work headless on a raspberry pi. Teste Using a discord webhook or SQL to log points everydays. Using Selenium and geckodriver. -You have to **fill the config file**. +## If you're using docker (way easier) +to use docker, run +``` +docker build Dockerfile +#copy the build id +docker run -ti --name MsRewards [build id] +``` +Then, fill the config and start the programm everydays with +``` +docker start MsRewards +``` + +## Other configuration -you have to put your credentials in the same folder as the script, in a `.csv` file. You have to put login and password this way : -``` -email1,password1 -email2,password2 -``` To use the database, I recommand MySql, Create a database with the name you want and create a table `daily`, like the one from the image : ![B96F2F6D-7257-4F12-BFA7-0BEC3FB72993](https://user-images.githubusercontent.com/74496300/172872979-05396b6b-b682-471a-b71b-41602d816504.jpeg) @@ -21,3 +28,12 @@ You can add a link to a website where content is only the link of the monthly fi You should limit to 6 account per IP, and DON'T USE outlook account, they are banned. ![image](https://user-images.githubusercontent.com/74496300/155960737-061229ca-db8c-4e66-9aef-542d9e709bb2.png) + +## if you're **not** using docker +You have to **fill the config file**. + +you have to put your credentials in the same folder as the script, in a `.csv` file. You have to put login and password this way : +``` +email1,password1 +email2,password2 +``` From b6e30888bb9b108b582867a08c0322c316759bd1 Mon Sep 17 00:00:00 2001 From: augustin64 <67148092+augustin64@users.noreply.github.com> Date: Sun, 25 Sep 2022 15:32:34 +0200 Subject: [PATCH 2/2] Update V4.py Fix constant name (introduced in [this commit](https://github.com/piair338/MsReward/commit/5b3b7c8aecdc9f0cf3d3ddfd08416356a6ecc544)) --- V4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/V4.py b/V4.py index 572e895..b28941f 100755 --- a/V4.py +++ b/V4.py @@ -223,7 +223,7 @@ def FirefoxDriver(mobile=False, Headless=Headless): def printf(txt, end="", Mobdriver=driver): - if Log: + if LOG: print(Timer(txt)) if FULL_LOG: try : @@ -234,7 +234,7 @@ def printf(txt, end="", Mobdriver=driver): def CustomSleep(temps): try : - if Log or not LINUX_HOST: #only print sleep when user see it + if LOG or not LINUX_HOST: #only print sleep when user see it points = [ " . ", " . ",