Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Commit

Permalink
uncluttering stats
Browse files Browse the repository at this point in the history
nuked heroku dyno stats because this branch is not for heroku
  • Loading branch information
arshsisodiya committed Jul 2, 2022
1 parent 2bde3a5 commit 60c05a5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 103 deletions.
10 changes: 1 addition & 9 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,15 +495,7 @@ def aria2c_init():
except KeyError:
APPDRIVE_EMAIL = None
APPDRIVE_PASS = None
try:
HEROKU_API_KEY = getConfig('HEROKU_API_KEY')
HEROKU_APP_NAME = getConfig('HEROKU_APP_NAME')
if len(HEROKU_API_KEY) == 0 or len(HEROKU_APP_NAME) == 0:
raise KeyError
except KeyError:
LOGGER.warning("Heroku details not entered.")
HEROKU_API_KEY = None
HEROKU_APP_NAME = None

try:
TOKEN_PICKLE_URL = getConfig('TOKEN_PICKLE_URL')
if len(TOKEN_PICKLE_URL) == 0:
Expand Down
5 changes: 1 addition & 4 deletions bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from telegram import InlineKeyboardMarkup
from telegram.ext import CommandHandler

from bot import bot, dispatcher, updater, botStartTime, IGNORE_PENDING_REQUESTS, LOGGER, Interval, INCOMPLETE_TASK_NOTIFIER, DB_URI, app, main_loop, HEROKU_API_KEY, HEROKU_APP_NAME
from bot import bot, dispatcher, updater, botStartTime, IGNORE_PENDING_REQUESTS, LOGGER, Interval, INCOMPLETE_TASK_NOTIFIER, DB_URI, app, main_loop
from .helper.ext_utils.fs_utils import start_cleanup, clean_all, exit_clean_up
from .helper.ext_utils.telegraph_helper import telegraph
from .helper.ext_utils.bot_utils import get_readable_file_size, get_readable_time
Expand All @@ -16,7 +16,6 @@
from .helper.telegram_helper.message_utils import sendMessage, sendMarkup, editMessage, sendLogFile
from .helper.telegram_helper.filters import CustomFilters
from .helper.telegram_helper.button_build import ButtonMaker
from .helper.ext_utils.heroku_helper import getHerokuDetails
from .modules import authorize, list, cancel_mirror, mirror_status, mirror, clone, watch, shell, eval, delete, count, leech_settings, search, rss


Expand Down Expand Up @@ -50,8 +49,6 @@ def stats(update, context):
f'<b>Total Memory:</b> {mem_t}\n'\
f'<b>Free:</b> {mem_a} | '\
f'<b>Used:</b> {mem_u}\n\n'
heroku = getHerokuDetails(HEROKU_API_KEY, HEROKU_APP_NAME)
if heroku: stats += heroku
sendMessage(stats, context.bot, update.message)


Expand Down
90 changes: 0 additions & 90 deletions bot/helper/ext_utils/heroku_helper.py

This file was deleted.

0 comments on commit 60c05a5

Please sign in to comment.