Use a png instead of jpeg
This commit is contained in:
parent
501fd3b19c
commit
f316351d16
1 changed files with 2 additions and 2 deletions
|
@ -272,7 +272,7 @@ class QuoteQuota(commands.Cog):
|
||||||
file = io.BytesIO()
|
file = io.BytesIO()
|
||||||
plt.savefig(file, format="jpg")
|
plt.savefig(file, format="jpg")
|
||||||
file.seek(0)
|
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]:
|
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():
|
for stat_k, stat_v in tate_stats["hours"].items():
|
||||||
hours[stat_k] += stat_v
|
hours[stat_k] += stat_v
|
||||||
graph = await asyncio.to_thread(self._generate_truth_frequency_graph, hours)
|
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
|
return embed, graph
|
||||||
|
|
||||||
@commands.slash_command(name="truths")
|
@commands.slash_command(name="truths")
|
||||||
|
|
Loading…
Reference in a new issue