From 33ad54090d28d399b538b1d50152bd44ffc014f0 Mon Sep 17 00:00:00 2001 From: snowy Date: Sun, 9 Jun 2024 22:36:58 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=96=B0=E7=89=88=E6=9C=ACnpm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 ++--- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 647c8fb4..1bb92d6c 100644 --- a/main.py +++ b/main.py @@ -4,7 +4,6 @@ from liteyuki.utils.base.config import load_from_yaml from liteyuki.utils.base.data_manager import StoredConfig, common_db from liteyuki.utils.base.ly_api import liteyuki_api - if __name__ == "__mp_main__": # Start as multiprocessing init() @@ -23,8 +22,8 @@ if __name__ == "__mp_main__": nonebot.logger.error(f"An error occurred: {e}, Bug will be reported automatically.") liteyuki_api.bug_report(str(e.__repr__())) - if __name__ == "__main__": # Start as __main__ from liteyuki.utils.base.reloader import Reloader - nonebot.run() \ No newline at end of file + + nonebot.run() diff --git a/requirements.txt b/requirements.txt index e5895782..1f9c3cf6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,7 +23,7 @@ importlib_metadata~=7.0.2 requests~=2.31.0 watchdog~=4.0.0 pillow~=10.2.0 - +jieba~=0.42.1 pip~=23.2.1 fastapi~=0.110.0 python-dotenv~=1.0.1 \ No newline at end of file