Skip to content

Commit

Permalink
Minor Fix
Browse files Browse the repository at this point in the history
Signed-off-by: harshhaareddy <[email protected]>
  • Loading branch information
harshhaareddy committed May 15, 2022
2 parents 57085e9 + 682beaf commit 9ec64d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
import os
import asyncio

from subprocess import run as srun
from subprocess import run as srun, check_output
from pyrogram import idle
from bot import app
from sys import executable

from telegram import ParseMode
from telegram.ext import CommandHandler
from wserver import start_server_async
from bot import bot, IMAGE_URL, dispatcher, updater, botStartTime, IGNORE_PENDING_REQUESTS, IS_VPS, SERVER_PORT, botVersion
from bot import bot, IMAGE_URL, dispatcher, updater, botStartTime, IGNORE_PENDING_REQUESTS, IS_VPS, SERVER_PORT
from bot.helper.ext_utils import fs_utils
from bot.helper.telegram_helper.bot_commands import BotCommands
from bot.helper.telegram_helper.message_utils import *
Expand All @@ -21,6 +23,7 @@


def stats(update, context):
botVersion = check_output(["git log -1 --date=format:v%Y.%m.%d --pretty=format:%cd"], shell=True).decode()
currentTime = get_readable_time(time.time() - botStartTime)
total, used, free = shutil.disk_usage('.')
total = get_readable_file_size(total)
Expand Down

0 comments on commit 9ec64d4

Please sign in to comment.