uéuéué faster, more reliable, ...

This commit is contained in:
piair
2023-04-12 00:01:24 +02:00
parent 12a6968ee0
commit dfd51bc040
3 changed files with 43 additions and 112 deletions

View File

@ -4,7 +4,7 @@ from modules.config import *
# add the time arround the text given in [text]&
def Timer(text: str, mail: str) -> str:
return(f"[{mail} - {datetime.today().strftime('%d-%m-%Y')} - {timedelta(seconds = round(float(time() - START_TIME)))}] " + str(text))
return(f"[{mail.split('@')[0]} - {datetime.today().strftime('%d/%m')} - {timedelta(seconds = round(float(time() - START_TIME)))}] " + str(text))
# replace the function print, with more options