Browse Source

ログインの前に 60 s 待機(#4)

kiriban
みてるぞ 1 month ago
parent
commit
9ec4e67a99
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      main.py

+ 5
- 2
main.py View File

@@ -61,6 +61,8 @@ def get_thread_contents (


def main ( def main (
) -> None: ) -> None:
time.sleep (60)

client = Client (base_url = 'https://bsky.social') client = Client (base_url = 'https://bsky.social')


client.login (account.USER_ID, account.PASSWORD) client.login (account.USER_ID, account.PASSWORD)
@@ -70,8 +72,6 @@ def main (
has_taken_hot_spring = False has_taken_hot_spring = False
watched_videos = [] watched_videos = []
while True: while True:
time.sleep (60)

now = datetime.now () now = datetime.now ()


for uri in check_notifications (client): for uri in check_notifications (client):
@@ -189,6 +189,9 @@ def main (
client.post (Talk.main ('今どうしてる?')) client.post (Talk.main ('今どうしてる?'))
last_posted_at = now last_posted_at = now


time.sleep (60)




def get_embed_info ( def get_embed_info (
url: str url: str


Loading…
Cancel
Save