おやつタイム画像追加

このコミットが含まれているのは:
2024-09-04 02:57:02 +09:00
コミット 3229f1b6c0
2個のファイルの変更8行の追加1行の削除
バイナリ
ファイルの表示
バイナリファイルは表示されません.

変更後

幅:  |  高さ:  |  サイズ: 171 KiB

+8 -1
ファイルの表示
@@ -87,7 +87,14 @@ def main () -> None:
has_got_snack_time = False has_got_snack_time = False
if now.hour == 15 and not has_got_snack_time: if now.hour == 15 and not has_got_snack_time:
client.send_post (Talk.main ('おやつタイムだ!!!!')) with open ('./assets/snack-time.jpg', 'rb') as f:
image = models.AppBskyEmbedImages.Image (
alt = 'おやつタイムだ!!!!',
image = client.com.atproto.repo.upload_blob (f).blob)
client.send_post (Talk.main ('おやつタイムだ!!!!'),
embed = models.app.bsky.embed.images.Main (
images = [image]))
last_posted_at = now last_posted_at = now
has_got_snack_time = True has_got_snack_time = True