Browse Source

おやつタイムの alt 属性追加

main
みてるぞ 2 weeks ago
parent
commit
f6ef60b619
1 changed files with 13 additions and 2 deletions
  1. +13
    -2
      main.py

+ 13
- 2
main.py View File

@@ -50,7 +50,8 @@ def get_thread_contents (
return records


def main () -> None:
def main (
) -> None:
client = Client (base_url = 'https://bsky.social')

client.login (account.USER_ID, account.PASSWORD)
@@ -92,7 +93,17 @@ def main () -> None:
try:
with open ('./assets/snack-time.jpg', 'rb') as f:
image = models.AppBskyEmbedImages.Image (
alt = 'おやつタイムだ!!!!',
alt = ('左に喜多ちゃん、右に人面鹿のニジカが'
'V字に並んでいる。'
'喜多ちゃんは右手でピースサインをして'
'片目をウインクしている。'
'ニジカは両手を広げ、'
'右手にスプーンを持って'
'ポーズを取っている。'
'背景には'
'赤と黄色の放射線状の模様が広がり、'
'下部に「おやつタイムだ!!!!」という'
'日本語のテキストが表示されている。'),
image = client.com.atproto.repo.upload_blob (f).blob)

client.send_post (Talk.main ('おやつタイムだ!!!!'),


Loading…
Cancel
Save