From 871dcd14d0402b59a61be985953752abc27ac26a Mon Sep 17 00:00:00 2001 From: SirDank <52797753+SirDank@users.noreply.github.com> Date: Sat, 9 Dec 2023 23:33:18 +0530 Subject: [PATCH] Update dank.tool.py --- __src__/dank.tool.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/__src__/dank.tool.py b/__src__/dank.tool.py index f559de6..0721286 100644 --- a/__src__/dank.tool.py +++ b/__src__/dank.tool.py @@ -45,7 +45,7 @@ def dank_tool_installer(): # print randomly coloured and aligned banner -def print_banner(): +def dank_tool_banner(): banner = '\n .. .. s .. \n dF < .z@8"` :8 x .d88" \n\'88bu. u. u. !@88E .88 u. u. 5888R \n\'*88888bu u x@88k u@88c. \'888E u :888ooo ...ue888b ...ue888b \'888R \n ^"*8888N us888u. ^"8888""8888" 888E u@8NL -*8888888 888R 888r 888R 888r 888R \n beWE "888L .@88 "8888" 8888 888R 888E`"88*" 8888 888R 888> 888R 888> 888R \n 888E 888E 9888 9888 8888 888R 888E .dN. 8888 888R 888> 888R 888> 888R \n 888E 888E 9888 9888 8888 888R 888E~8888 8888 888R 888> 888R 888> 888R \n 888E 888F 9888 9888 8888 888R 888E \'888& . .8888Lu= u8888cJ888 u8888cJ888 888R \n.888N..888 9888 9888 "*88*" 8888" 888E 9888. .@8c ^%888* "*888*P" "*888*P" .888B . \n `"888*"" "888*""888" "" \'Y" \'"888*" 4888" \'%888" \'Y" \'Y" \'Y" ^*888% \n "" ^Y" ^Y\' "" "" ^* "% \n' cls(); print(align(clr(banner,4,colours=[white, white_normal, red, red, red, red, red_normal, red_dim]) + f"\n{white}s i r {red}. {white}d a n k {red}💕")) @@ -138,7 +138,7 @@ def download_assets(url, file_name): def print_modules(): - print_banner(); print(clr(f"\n - Modules:{stats}") + red + ('' if ONLINE_MODE else ' OFFLINE') + ('' if not OFFLINE_SRC else ' DEBUG') + ('' if not DEV_BRANCH else ' ONLINE DEBUG') + "\n") + dank_tool_banner(); print(clr(f"\n - Modules:{stats}") + red + ('' if ONLINE_MODE else ' OFFLINE') + ('' if not OFFLINE_SRC else ' DEBUG') + ('' if not DEV_BRANCH else ' ONLINE DEBUG') + "\n") user_renderables = [] console = Console() counter = 1 @@ -163,7 +163,7 @@ def print_modules(): def print_category_modules(modules): - print_banner(); print(clr(f"\n - Modules:{stats}") + red + ('' if ONLINE_MODE else ' OFFLINE') + ('' if not OFFLINE_SRC else ' DEBUG') + ('' if not DEV_BRANCH else ' ONLINE DEBUG') + "\n") + dank_tool_banner(); print(clr(f"\n - Modules:{stats}") + red + ('' if ONLINE_MODE else ' OFFLINE') + ('' if not OFFLINE_SRC else ' DEBUG') + ('' if not DEV_BRANCH else ' ONLINE DEBUG') + "\n") user_renderables = [] console = Console() counter = 1 @@ -572,7 +572,7 @@ def translate(text): choice = local_modules[list(local_modules.keys())[int(choice) - len(modules) - 1]] LOCAL_MODULE = True - if choice['category']: + if not LOCAL_MODULE and choice['category']: print_category_modules(choice)