From 35f249bd9535f069086a02e51c0f5df4f7b54c9a Mon Sep 17 00:00:00 2001 From: TraderLife <62692145+traderlife8@users.noreply.github.com> Date: Fri, 8 May 2026 11:53:54 +0800 Subject: [PATCH] feat: add --wechat/--wx launch argument (#288) --- launch.pyw | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/launch.pyw b/launch.pyw index e5b148f2..cd68f0a5 100644 --- a/launch.pyw +++ b/launch.pyw @@ -85,6 +85,7 @@ if __name__ == '__main__': parser.add_argument('--tg', action='store_true', help='启动 Telegram Bot'); parser.add_argument('--qq', action='store_true', help='启动 QQ Bot'); parser.add_argument('--feishu', '--fs', dest='feishu', action='store_true', help='启动 Feishu Bot'); + parser.add_argument('--wechat', '--wx', dest='wechat', action='store_true', help='启动 WeChat Bot'); parser.add_argument('--wecom', action='store_true', help='启动 WeCom Bot'); parser.add_argument('--dingtalk', '--dt', dest='dingtalk', action='store_true', help='启动 DingTalk Bot'); parser.add_argument('--sched', action='store_true', help='启动计划任务调度器') @@ -112,6 +113,12 @@ if __name__ == '__main__': print('[Launch] Feishu Bot started') else: print('[Launch] Feishu Bot not enabled (use --feishu to start)') + if args.wechat: + wxproc = subprocess.Popen([sys.executable, os.path.join(frontends_dir, 'wechatapp.py')], creationflags=subprocess.CREATE_NO_WINDOW if os.name=='nt' else 0) + atexit.register(wxproc.kill) + print('[Launch] WeChat Bot started') + else: print('[Launch] WeChat Bot not enabled (use --wechat to start)') + if args.wecom: wcproc = subprocess.Popen([sys.executable, os.path.join(frontends_dir, "wecomapp.py")], creationflags=subprocess.CREATE_NO_WINDOW if os.name=='nt' else 0) atexit.register(wcproc.kill)