oui
This commit is contained in:
parent
b0f28bdd7d
commit
cdc21152c9
5
V4.py
5
V4.py
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user