From eb15e7c2459014f94f36126b1586f137501fac90 Mon Sep 17 00:00:00 2001 From: Hafitz Setya <71178188+breakdowns@users.noreply.github.com> Date: Fri, 23 Apr 2021 14:27:25 +0700 Subject: [PATCH] Update __main__.py --- bot/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot/__main__.py b/bot/__main__.py index 67edb53ce8e..47cf0c32cb3 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -5,6 +5,8 @@ from bot import app from os import execl, kill, path, remove from sys import executable +from datetime import datetime +import pytz import time from telegram import ParseMode from telegram.ext import CommandHandler, run_async @@ -21,7 +23,7 @@ @run_async def stats(update, context): currentTime = get_readable_time((time.time() - botStartTime)) - current = now.strftime('%Y/%m/%d %I:%M:%S') + current = now.strftime('%Y/%m/%d %I:%M:%S %p') total, used, free = shutil.disk_usage('.') total = get_readable_file_size(total) used = get_readable_file_size(used)