From dd576c9dd9cb838ec4834e8bd4d3ba1df35084f3 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Sun, 8 Nov 2026 22:43:11 +0900 Subject: post-x-events.mjs: 当日の予定をXへ自動投稿するスクリプトを追加 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit その日の予定を全件掲載し、誤りがあり得る旨の注意書きを付けて投稿する。1日の投稿上限(既定3件、X_MAX_POSTS_PER_DAY で変更可)を設け、投稿履歴とログは logs/ に保存する。package.json に x:preview / x:post を追加。 --- package.json | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package.json') diff --git a/package.json b/package.json index a7ab88e..4c41862 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,8 @@ "build": "astro build && py -c \"import shutil; shutil.copy('public/.htaccess', 'dist/.htaccess')\" && py removeNullCharacters.py && node scripts/generate-llms-full.mjs", "deploy": "sh deploy.sh", "indexnow": "node scripts/indexnow.mjs", + "x:preview": "node --no-warnings scripts/post-x-events.mjs", + "x:post": "node --no-warnings scripts/post-x-events.mjs --post", "library:update": "node scripts/update-library-dates.mjs", "library:apply": "node scripts/update-library-dates.mjs --apply", "park-editor": "node scripts/park-editor.mjs", -- cgit v1.3.1