From fb920a1f2c4f0f3c33040304c61a2fe3d40a300a Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sun, 10 Nov 2024 03:26:30 +0900 Subject: [PATCH] =?UTF-8?q?#8=20=E3=81=99=E3=81=A7=E3=81=AB=E3=81=84?= =?UTF-8?q?=E3=81=84=E3=81=AD=E3=81=97=E3=81=A6=E3=82=90=E3=82=8B=E3=83=9D?= =?UTF-8?q?=E3=82=B9=E3=83=88=E3=81=AF=E5=AF=BE=E8=B1=A1=E5=A4=96=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 3afe32c..bdf92e3 100644 --- a/main.py +++ b/main.py @@ -334,6 +334,7 @@ def get_target_posts ( timeline: Response = client.get_timeline () for feed in timeline.feed: if (feed.post.author.did != client.me.did + and (feed.post.viewer.like is None) and any (target_word in feed.post.record.text.lower () for target_word in TARGET_WORDS)): posts.append (LikeParams({ 'uri': feed.post.uri, 'cid': feed.post.cid }))