Made weapon usages chart

This commit is contained in:
2023-06-05 21:00:49 +02:00
parent 6aebd68aff
commit cd114c187f
4 changed files with 114 additions and 5 deletions
+6 -3
View File
@@ -45,10 +45,13 @@ class Stats(commands.Cog):
return
async with aiohttp.ClientSession() as session:
botmessage = await get_allplayer_stats(session, players.values(), weaponid, weaponname, server)
print(players.values())
botmessage, img_file = await get_allplayer_stats(session, players.values(), weaponid, weaponname, server)
await ctx.send(embed=botmessage)
if(img_file != ""):
await ctx.send(file=img_file, embed=botmessage)
else:
await ctx.send(embed=botmessage)
@commands.Cog.listener()
async def on_command_error(self, ctx, err):