aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-04-25 01:25:22 -0700
committerPinapelz <yukais@pinapelz.com>2025-04-25 01:25:36 -0700
commiteb97f51353fc6a2e582bf70187a4203e79e276bf (patch)
treef95976d0979c1e3f176050c60680096b9c65fdda
parent2d8edf572816cb8115e9a5ae16bcf2f646206fea (diff)
add AI disclaimer
-rw-r--r--rasis.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/rasis.py b/rasis.py
index 4d19058..2f68596 100644
--- a/rasis.py
+++ b/rasis.py
@@ -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"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage