diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-04-25 01:25:22 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-04-25 01:25:36 -0700 |
| commit | eb97f51353fc6a2e582bf70187a4203e79e276bf (patch) | |
| tree | f95976d0979c1e3f176050c60680096b9c65fdda /rasis.py | |
| parent | 2d8edf572816cb8115e9a5ae16bcf2f646206fea (diff) | |
add AI disclaimer
Diffstat (limited to 'rasis.py')
| -rw-r--r-- | rasis.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -96,12 +96,14 @@ def generate_post_content(post_data: dict) -> str: else: return None content = f"📰 {game} - {post_data['date']}\n\n" + if post_data["is_ai_summary"]: + content = content + "The information below is written by AI / 上記の情報はAIによって生成されました。\n\n" if post_data["type"] is not None: content = content + f"[{post_data['type']}] " if post_data["headline"] is not None and post_data["headline"] != post_data["content"] : content = content + f"[{post_data['headline']}]\n\n" - if len(post_data["content"]) > 3000: - truncated_content = post_data["content"][:3000] + "..." + if len(post_data["content"]) > 2500: + truncated_content = post_data["content"][:2500] + "..." content = content + truncated_content + "\n\n" else: content = content + post_data["content"] + "\n\n" |
