forgot to add chart to /stats

This commit is contained in:
2023-06-05 21:09:49 +02:00
parent cd114c187f
commit e9f0c040d4
3 changed files with 6 additions and 3 deletions
+6 -2
View File
@@ -41,9 +41,13 @@ class SlashStats(commands.Cog):
server = await getserver(session, servername)
async with aiohttp.ClientSession() as session:
botmessage = await get_allplayer_stats(session, players.values(), weaponid, weaponname, server)
botmessage, img_file = await get_allplayer_stats(session, players.values(), weaponid, weaponname, server)
if(img_file != ""):
await interaction.response.send_message(file=img_file, embed=botmessage)
else:
await interaction.response.send_message(embed=botmessage)
await interaction.response.send_message(embed=botmessage)
@stats.autocomplete("weapon")
async def autocomplete_weapon(self, interaction: discord.Interaction, current: str) -> list[app_commands.Choice[str]]: