mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	i was right nothing was,working as intended
This commit is contained in:
		
							
								
								
									
										1
									
								
								V4.py
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								V4.py
									
									
									
									
									
								
							@@ -7,7 +7,6 @@ from re import findall, search
 | 
				
			|||||||
from sys import platform
 | 
					from sys import platform
 | 
				
			||||||
from time import sleep
 | 
					from time import sleep
 | 
				
			||||||
from requests import get
 | 
					from requests import get
 | 
				
			||||||
from datetime import timedelta
 | 
					 | 
				
			||||||
from selenium import webdriver
 | 
					from selenium import webdriver
 | 
				
			||||||
from selenium.common import exceptions
 | 
					from selenium.common import exceptions
 | 
				
			||||||
from selenium.webdriver.common.by import By
 | 
					from selenium.webdriver.common.by import By
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -59,7 +59,7 @@ else:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#reading configuration
 | 
					#reading configuration
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config_path = f"{path.abspath( path.dirname( __file__ ) )}/user_data/config.cfg"
 | 
					config_path = f"{path.abspath(path.dirname(path.dirname( __file__ )))}/user_data/config.cfg"
 | 
				
			||||||
if args.config :
 | 
					if args.config :
 | 
				
			||||||
    config_path = path.abspath(args.config.name)
 | 
					    config_path = path.abspath(args.config.name)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,5 @@
 | 
				
			|||||||
from time import sleep
 | 
					from time import sleep
 | 
				
			||||||
 | 
					from datetime import timedelta
 | 
				
			||||||
from random import uniform
 | 
					from random import uniform
 | 
				
			||||||
import discord
 | 
					import discord
 | 
				
			||||||
from discord import (  # Importing discord.Webhook and discord.RequestsWebhookAdapter
 | 
					from discord import (  # Importing discord.Webhook and discord.RequestsWebhookAdapter
 | 
				
			||||||
@@ -7,7 +8,8 @@ from discord import (  # Importing discord.Webhook and discord.RequestsWebhookAd
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from modules.config import *
 | 
					from modules.config import *
 | 
				
			||||||
 | 
					global _mail
 | 
				
			||||||
 | 
					_mail = "undefined"
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
send_keys_wait([selenium element:element, str:keys]) send the different keys to the field element, with a random time between each press to simulate human action.
 | 
					send_keys_wait([selenium element:element, str:keys]) send the different keys to the field element, with a random time between each press to simulate human action.
 | 
				
			||||||
keys can be an string, but alos selenium keys
 | 
					keys can be an string, but alos selenium keys
 | 
				
			||||||
@@ -20,7 +22,7 @@ def send_keys_wait(element, keys):
 | 
				
			|||||||
        else :
 | 
					        else :
 | 
				
			||||||
            sleep(uniform(0.1, 0.3))
 | 
					            sleep(uniform(0.1, 0.3))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def LogError(message, driver, log=FULL_LOG):
 | 
					def LogError(message, driver,_mail, log=FULL_LOG):
 | 
				
			||||||
    print(f"\n\n\033[93m Erreur : {str(message)}  \033[0m\n\n")
 | 
					    print(f"\n\n\033[93m Erreur : {str(message)}  \033[0m\n\n")
 | 
				
			||||||
    if DISCORD_ENABLED_ERROR:
 | 
					    if DISCORD_ENABLED_ERROR:
 | 
				
			||||||
        with open("page.html", "w") as f:
 | 
					        with open("page.html", "w") as f:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user