おやつタイム画像追加
このコミットが含まれているのは:
バイナリファイルは表示されません.
|
変更後 幅: | 高さ: | サイズ: 171 KiB |
@@ -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
|
||||||
|
|||||||
新しい課題から参照
ユーザをブロックする