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