disable embed from fluxer
Build and publish ich_iel bot / build (push) Successful in 6m5s

This commit is contained in:
2026-05-28 10:37:49 +02:00
parent 139a5ad956
commit 7811ee2888
+1 -1
View File
@@ -278,7 +278,7 @@ async def post_reddit():
content_type = response.headers.get("Content-Type", "").split(";")[0] content_type = response.headers.get("Content-Type", "").split(";")[0]
file_ext = content_type.split("/")[-1] if content_type.startswith("image/") else "jpg" file_ext = content_type.split("/")[-1] if content_type.startswith("image/") else "jpg"
await channel.send( await channel.send(
content=f"{title}\nOriginal post: {image_url}", content=f"{title}\nOriginal post: <{image_url}>",
file=fluxer.File(image_bytes, filename=f"{post_id}.{file_ext}") file=fluxer.File(image_bytes, filename=f"{post_id}.{file_ext}")
) )
cur.execute("INSERT OR REPLACE INTO posted (guild_id, post_id) VALUES (?, ?)", (guild_id, post_id)) cur.execute("INSERT OR REPLACE INTO posted (guild_id, post_id) VALUES (?, ?)", (guild_id, post_id))