This commit is contained in:
piair 2022-04-18 09:37:47 +02:00
parent b0f28bdd7d
commit cdc21152c9
1 changed files with 3 additions and 2 deletions

5
V4.py
View File

@ -10,6 +10,7 @@ from re import findall, search
from sys import platform from sys import platform
from time import sleep, time from time import sleep, time
from requests import get from requests import get
from datetime import timedelta
import discord import discord
from discord import ( # Importing discord.Webhook and discord.RequestsWebhookAdapter from discord import ( # Importing discord.Webhook and discord.RequestsWebhookAdapter
Colour, Colour,
@ -55,7 +56,7 @@ driver = None
def Timer(text="undefined"): def Timer(text="undefined"):
return(f"[{round(float(time() - start_time))}] : " + text ) return(f"[{timedelta(round(float(time() - start_time)))}] : " + text )
if IsLinux: if IsLinux:
@ -126,7 +127,7 @@ def printf(txt, end="", Mobdriver=driver):
try : try :
LogError(Timer(txt), Mobdriver=Mobdriver) LogError(Timer(txt), Mobdriver=Mobdriver)
except Exception as e: except Exception as e:
print(Timer(e)) print("\n" + Timer(e) + "\n")
def CustomSleep(temps): def CustomSleep(temps):