From e6fb81bcc4306bc6eff4169a224e1cdef61b4d92 Mon Sep 17 00:00:00 2001 From: xiongxiao Date: Wed, 18 Mar 2026 19:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF=E5=A4=84?= =?UTF-8?q?=E7=90=86=E4=BB=A5=E7=A1=AE=E4=BF=9D=E8=AF=BB=E5=8F=96=E5=89=A9?= =?UTF-8?q?=E4=BD=99=E6=97=B6=E9=97=B4=E6=96=87=E4=BB=B6=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E7=A8=B3=E5=AE=9A=E6=80=A7=EF=BC=9B=E6=96=B0=E5=A2=9E=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E8=84=9A=E6=9C=AC=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- minimax/listen-cost/index.ts | 8 ++++++-- minimax/listen-cost/readme.md | 8 ++++++++ xiaoxiongmao/init.ts | 8 ++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 minimax/listen-cost/readme.md create mode 100644 xiaoxiongmao/init.ts diff --git a/minimax/listen-cost/index.ts b/minimax/listen-cost/index.ts index aa85e64..64de891 100644 --- a/minimax/listen-cost/index.ts +++ b/minimax/listen-cost/index.ts @@ -37,8 +37,12 @@ export const notify = (content: string) => { console.log(message); } export const notifyJob = () => { - const content = fs.readFileSync(path.join(__dirname, `storage/${groupId}_remains.txt`), 'utf-8'); - notify(content); + try { + const content = fs.readFileSync(path.join(__dirname, `storage/${groupId}_remains.txt`), 'utf-8'); + notify(content); + } catch (error) { + console.error('Failed to read remains file:'); + } } const isPm2 = process.env.PM2_HOME !== undefined; diff --git a/minimax/listen-cost/readme.md b/minimax/listen-cost/readme.md new file mode 100644 index 0000000..52ccb57 --- /dev/null +++ b/minimax/listen-cost/readme.md @@ -0,0 +1,8 @@ +# 监听minimax的剩余时间,定时通知群里 + +## 说明 + +环境变量 + +- `MINIMAX_COOKIE` +- `MINIMAX_GROUP_ID` \ No newline at end of file diff --git a/xiaoxiongmao/init.ts b/xiaoxiongmao/init.ts new file mode 100644 index 0000000..485cc24 --- /dev/null +++ b/xiaoxiongmao/init.ts @@ -0,0 +1,8 @@ +const startList = [ + { + cmd: 'bun /workspace/openclaw/skills/cnb-dev-sync/scripts/sync.ts all' + }, + { + cmd:"cd /workspace/skills/minimax/listen-cost && pnpm pm2" + } +] \ No newline at end of file