Browse Source

細部

main
みてるぞ 2 weeks ago
parent
commit
f0184096cf
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      main.py
  2. +1
    -1
      nizika_ai

+ 3
- 2
main.py View File

@@ -89,7 +89,8 @@ async def report_kiriban (
prompt += f"つけられたタグは「{ '」、「'.join (video_info['tags']) }」です。\n" prompt += f"つけられたタグは「{ '」、「'.join (video_info['tags']) }」です。\n"
if comments: if comments:
prompt += f"人気のコメントは次の通りです:「{ '」、「'.join (c.content for c in popular_comments) }」\n" 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""" prompt += f"""
概要には次のように書かれています: 概要には次のように書かれています:
```html ```html
@@ -333,7 +334,7 @@ def _format_elapsed (


kiriban_list = ( kiriban_list = (
fetch_kiriban_list ((now := datetime.now ()).date () fetch_kiriban_list ((now := datetime.now ()).date ()
- timedelta (days = now.hour < 15)))
- timedelta (days = 1 if now.hour < 15 else 0)))


if __name__ == '__main__': if __name__ == '__main__':
asyncio.run (main ()) asyncio.run (main ())

+ 1
- 1
nizika_ai

@@ -1 +1 @@
Subproject commit 3fd16bd1c242508e8a2f79618aa1e32953a6a840
Subproject commit 4e5bd13ab45ec024bda6746db4959d32fced56da

Loading…
Cancel
Save