forgot to add chart to /stats
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 42 KiB |
@@ -45,7 +45,6 @@ class Stats(commands.Cog):
|
||||
return
|
||||
|
||||
async with aiohttp.ClientSession() as session:
|
||||
print(players.values())
|
||||
botmessage, img_file = await get_allplayer_stats(session, players.values(), weaponid, weaponname, server)
|
||||
|
||||
if(img_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]]:
|
||||
|
||||
Reference in New Issue
Block a user