From cdc21152c94d834d05c185bc18757cf829533a35 Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 18 Apr 2022 09:37:47 +0200 Subject: [PATCH] oui --- V4.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/V4.py b/V4.py index 7f38b7c..8182321 100755 --- a/V4.py +++ b/V4.py @@ -10,6 +10,7 @@ from re import findall, search from sys import platform from time import sleep, time from requests import get +from datetime import timedelta import discord from discord import ( # Importing discord.Webhook and discord.RequestsWebhookAdapter Colour, @@ -55,7 +56,7 @@ driver = None def Timer(text="undefined"): - return(f"[{round(float(time() - start_time))}] : " + text ) + return(f"[{timedelta(round(float(time() - start_time)))}] : " + text ) if IsLinux: @@ -126,7 +127,7 @@ def printf(txt, end="", Mobdriver=driver): try : LogError(Timer(txt), Mobdriver=Mobdriver) except Exception as e: - print(Timer(e)) + print("\n" + Timer(e) + "\n") def CustomSleep(temps):