Update makePiechart.py

This commit is contained in:
iiLarsH
2023-06-07 13:02:14 +02:00
committed by GitHub
parent 402808663a
commit 489792a264
+1
View File
@@ -93,6 +93,7 @@ def make_donut_chart(botmessage, playerid, server=""):
plt.gca().add_artist(circle)
plt.savefig("Reuse/images/player_weapons_used.png")
plt.close()
img_file = discord.File("Reuse/images/player_weapons_used.png", filename="player_weapons_used.png")
botmessage.set_image(url="attachment://player_weapons_used.png")