<feed xmlns='http://www.w3.org/2005/Atom'>
<title>yasutakeyohei.com/scripts/post-x-events.mjs, branch main</title>
<subtitle>公式ウェブサイトのソースコード（Astro + Starlight）</subtitle>
<id>https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/atom/scripts/post-x-events.mjs?h=main</id>
<link rel='self' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/atom/scripts/post-x-events.mjs?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/'/>
<updated>2026-11-10T15:43:27Z</updated>
<entry>
<title>post-x-events.mjs: 前回の投稿を削除してから投稿する--replaceを追加</title>
<updated>2026-11-10T15:43:27Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-10T15:43:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=7e146b1dd756589ea0863b8d1c3fc70894666cb1'/>
<id>urn:sha1:7e146b1dd756589ea0863b8d1c3fc70894666cb1</id>
<content type='text'>
認証情報の読み込みを共通化し、DELETE /2/tweets/:id で直近の前回投稿を削除できるようにした。削除対象は履歴に記録された自分の投稿IDのみで、削除に失敗しても投稿は続行する。
</content>
</entry>
<entry>
<title>post-x-events.mjs: 今日すでに終了した予定を投稿から除く</title>
<updated>2026-11-08T15:03:41Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-08T15:03:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=8da814de863f6f94e5baa5d3f1e364e7f2453ad1'/>
<id>urn:sha1:8da814de863f6f94e5baa5d3f1e364e7f2453ad1</id>
<content type='text'>
時間・会場セルから終了時刻を読み取り、今日の分は終了時刻を過ぎた予定を除外する。終了時刻の記載がない場合は開始の2時間後とみなし、未定・時刻なしの予定は残す。動作確認用に --at HH:MM を追加。
</content>
</entry>
<entry>
<title>post-x-events.mjs: 週1回分の予定投稿と認証確認に対応</title>
<updated>2026-11-08T14:54:04Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-08T14:54:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=27b5325f2d89b3a714059719e4c4cbe931b5b1a3'/>
<id>urn:sha1:27b5325f2d89b3a714059719e4c4cbe931b5b1a3</id>
<content type='text'>
既定を「今後1週間分」（--days 7）にし、日付ごとの見出しと「期間中」のまとめを追加した。前回から7日経っていなければ投稿しない間隔判定（X_POST_INTERVAL_DAYS）と1日3件の上限を設け、--check で認証を確認できるようにした。返信投稿（X_REPLY_TO_ID / --reply-to）と、掲載漏れがあり得る旨の注意書きも追加。
</content>
</entry>
<entry>
<title>post-x-events.mjs: 当日の予定をXへ自動投稿するスクリプトを追加</title>
<updated>2026-11-08T13:43:11Z</updated>
<author>
<name>Yasutake Yohei</name>
<email>61961825+yasutakeyohei@users.noreply.github.com</email>
</author>
<published>2026-11-08T13:43:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit.yasutakeyohei.com/yasutakeyohei.com.git/commit/?id=dd576c9dd9cb838ec4834e8bd4d3ba1df35084f3'/>
<id>urn:sha1:dd576c9dd9cb838ec4834e8bd4d3ba1df35084f3</id>
<content type='text'>
その日の予定を全件掲載し、誤りがあり得る旨の注意書きを付けて投稿する。1日の投稿上限（既定3件、X_MAX_POSTS_PER_DAY で変更可）を設け、投稿履歴とログは logs/ に保存する。package.json に x:preview / x:post を追加。
</content>
</entry>
</feed>
