def main(print_banner: bool = True): if (print_banner): banner() gset("root_path", path.split(path.realpath(__file__))[0]) with open(path.join(gget("root_path"), "auxiliary", "user_agents", "ua.txt"), "r") as f: gset("user_agents", f.readlines()) register_helpmenu() run_loop(My_Loop_init(), leave_message="Bye! Doughnuts:)")
def main(print_banner: bool = True): if (print_banner): banner() gset("root_path", path.split(path.realpath(__file__))[0]) with open(path.join(gget("root_path"), "auxiliary", "user_agents", "ua.txt"), "r") as f: gset("user_agents", f.readlines()) register_helpmenu() try: with open("./variables.config", "r") as f: try: for key, value in loads(f.read()).items(): custom_set(key=key, value=value) print( f"\n{color.green('Variable(s) loaded successfully from file variables.config')}\n") except JSONDecodeError: print( f"\n{color.yellow('Variable(s) could not be read correctly')}\n") except FileNotFoundError: pass except IOError: print(f"\n{color.red('Permission denied to read variables.config')}\n") run_loop(My_Loop_init(), leave_message="Bye! Doughnuts:)")
def main(): banner() chdir(path.split(path.realpath(__file__))[0]) run_loop(My_Loop_init(), leave_message="Bye! Doughnuts:)")