From 9ec4e67a99d9aea217aeb1e014a3082a54858992 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Thu, 17 Oct 2024 22:57:35 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=A4=E3=83=B3=E3=81=AE?= =?UTF-8?q?=E5=89=8D=E3=81=AB=2060=20s=20=E5=BE=85=E6=A9=9F=EF=BC=88#4?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a5bc3c5..9ed0a51 100644 --- a/main.py +++ b/main.py @@ -61,6 +61,8 @@ def get_thread_contents ( def main ( ) -> None: + time.sleep (60) + client = Client (base_url = 'https://bsky.social') client.login (account.USER_ID, account.PASSWORD) @@ -70,8 +72,6 @@ def main ( has_taken_hot_spring = False watched_videos = [] while True: - time.sleep (60) - now = datetime.now () for uri in check_notifications (client): @@ -189,6 +189,9 @@ def main ( client.post (Talk.main ('今どうしてる?')) last_posted_at = now + time.sleep (60) + + def get_embed_info ( url: str