Use a png instead of jpeg

This commit is contained in:
Nexus 2024-04-16 12:06:11 +01:00
parent 501fd3b19c
commit f316351d16
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -272,7 +272,7 @@ class QuoteQuota(commands.Cog):
file = io.BytesIO()
plt.savefig(file, format="jpg")
file.seek(0)
return discord.File(file, "truths.jpg")
return discord.File(file, "truths.png")
async def _process_all_messages(self, channel: discord.TextChannel) -> tuple[discord.Embed, discord.File]:
"""
@ -312,7 +312,7 @@ class QuoteQuota(commands.Cog):
for stat_k, stat_v in tate_stats["hours"].items():
hours[stat_k] += stat_v
graph = await asyncio.to_thread(self._generate_truth_frequency_graph, hours)
embed.set_image(url="attachment://truths.jpg")
embed.set_image(url="attachment://truths.png")
return embed, graph
@commands.slash_command(name="truths")