aboutsummaryrefslogtreecommitdiffstats
path: root/rasis.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-04-14 03:29:22 -0700
committerPinapelz <yukais@pinapelz.com>2025-04-14 03:39:42 -0700
commitbfa4bc4799f3dfb4c49fd069741af2b54f29fa02 (patch)
tree7722424bc73672b381e71ee8a7de9fc7f90bb0ca /rasis.py
parent9756e0c01fb6a86382380df97c3391e994120edb (diff)
add maimai dx support
Diffstat (limited to 'rasis.py')
-rw-r--r--rasis.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/rasis.py b/rasis.py
index ca8018b..b719527 100644
--- a/rasis.py
+++ b/rasis.py
@@ -8,7 +8,7 @@ import os
load_dotenv()
-HASHED_NEWS_FILES = "hashes.txt"
+HASHED_NEWS_FILES = os.environ.get("HASH_FILE_PATH")
def generate_queued_posts() -> list:
def news_already_hashed(line: str) -> bool:
@@ -56,8 +56,11 @@ def generate_post_content(post_data: dict) -> str:
game = "SOUND VOLTEX"
tags = "#sdvx #soundvoltex #bemani"
elif "CHUNITHM" in post_data["identifier"]:
- game = "CHUNITHM JPN"
+ game = "CHUNITHM (JPN)"
tags = "#chunithm"
+ elif "MAIMAIDX" in post_data["identifier"]:
+ game = "maimai DX (JPN)"
+ tags = "#maimaidx"
content = f"📰 {game} - {post_data['date']}\n\n"
if post_data["type"] is not None:
content = content + f"[{post_data['type']}] "
@@ -96,4 +99,4 @@ if __name__ == "__main__":
queued_posts = generate_queued_posts()
for post in queued_posts:
content = generate_post_content(post)
- post_on_fedi(content)
+ post_on_fedi(post)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage