diff --git a/main.py b/main.py index f25ab97..1ce6bff 100644 --- a/main.py +++ b/main.py @@ -89,7 +89,8 @@ async def report_kiriban ( prompt += f"つけられたタグは「{ '」、「'.join (video_info['tags']) }」です。\n" if comments: prompt += f"人気のコメントは次の通りです:「{ '」、「'.join (c.content for c in popular_comments) }」\n" - prompt += f"最新のコメントは次の通りです:「{ '」、「'.join (c.content for c in latest_comments) }」\n" + if latest_comments != popular_comment: + prompt += f"最新のコメントは次の通りです:「{ '」、「'.join (c.content for c in latest_comments) }」\n" prompt += f""" 概要には次のように書かれています: ```html @@ -333,7 +334,7 @@ def _format_elapsed ( kiriban_list = ( fetch_kiriban_list ((now := datetime.now ()).date () - - timedelta (days = now.hour < 15))) + - timedelta (days = 1 if now.hour < 15 else 0))) if __name__ == '__main__': asyncio.run (main ()) diff --git a/nizika_ai b/nizika_ai index 3fd16bd..4e5bd13 160000 --- a/nizika_ai +++ b/nizika_ai @@ -1 +1 @@ -Subproject commit 3fd16bd1c242508e8a2f79618aa1e32953a6a840 +Subproject commit 4e5bd13ab45ec024bda6746db4959d32fced56da