跳转到内容

部署

配合 cron 实现每日自动签到:

Terminal window
# 每天早上 8:00 执行
0 8 * * * cd /path/to/project && node index.mjs
import { run } from "./index.mjs";
await run();
await run("/path/to/asign.json");
await run({
caiyun: [{ auth: "你的auth" }],
});
import { main } from "./index.mjs";
const result = await main({ auth: "你的auth" }, { logger: console });