From 8bbbd16b5ba856c283ae39b6e4e883428fd1d5e5 Mon Sep 17 00:00:00 2001 From: Xiaoyue Lin <36526527+100gle@users.noreply.github.com> Date: Wed, 7 Jun 2023 16:08:42 +0800 Subject: [PATCH] chore(core): move figlet from file to source code (#302) --- src/icon | 8 -------- src/module/core/program.py | 13 +++++++++++-- 2 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 src/icon diff --git a/src/icon b/src/icon deleted file mode 100644 index b5ddfb0a..00000000 --- a/src/icon +++ /dev/null @@ -1,8 +0,0 @@ - _ ____ _ - /\ | | | _ \ (_) - / \ _ _| |_ ___ | |_) | __ _ _ __ __ _ _ _ _ __ ___ _ - / /\ \| | | | __/ _ \| _ < / _` | '_ \ / _` | | | | '_ ` _ \| | - / ____ \ |_| | || (_) | |_) | (_| | | | | (_| | |_| | | | | | | | - /_/ \_\__,_|\__\___/|____/ \__,_|_| |_|\__, |\__,_|_| |_| |_|_| - __/ | - |___/ \ No newline at end of file diff --git a/src/module/core/program.py b/src/module/core/program.py index 466eed90..9e6a2627 100644 --- a/src/module/core/program.py +++ b/src/module/core/program.py @@ -8,12 +8,21 @@ from module.update import data_migration logger = logging.getLogger(__name__) +figlet = r""" + _ ____ _ + /\ | | | _ \ (_) + / \ _ _| |_ ___ | |_) | __ _ _ __ __ _ _ _ _ __ ___ _ + / /\ \| | | | __/ _ \| _ < / _` | '_ \ / _` | | | | '_ ` _ \| | + / ____ \ |_| | || (_) | |_) | (_| | | | | (_| | |_| | | | | | | | + /_/ \_\__,_|\__\___/|____/ \__,_|_| |_|\__, |\__,_|_| |_| |_|_| + __/ | + |___/ +""" class Program(RenameThread, RSSThread): @staticmethod def __start_info(): - with open("icon", "r") as f: - for line in f.readlines(): + for line in figlet.splitlines(): logger.info(line.strip("\n")) logger.info( f"Version {VERSION} Author: EstrellaXD Twitter: https://twitter.com/Estrella_Pan"