diff --git a/commands/search_commands.py b/commands/search_commands.py index 181210c..b01ef20 100644 --- a/commands/search_commands.py +++ b/commands/search_commands.py @@ -268,6 +268,7 @@ async def stats(self, interaction: discord.Interaction, tourney_only:bool=False) relative_faction_performance = Counter() positional_drafts = [Counter() for _ in range(6)] await interaction.response.defer(thinking=True) + await interaction.followup.send("Here are your stats") lowerLim = 100 higherLim = 999 if tourney_only: @@ -337,7 +338,7 @@ async def stats(self, interaction: discord.Interaction, tourney_only:bool=False) asyncio.create_task(interaction.channel.send(summary) ) summary = "Point Progression:\n" for username, count in vp_count.most_common(): - summary += f"{username}: {count}/300 VPs ({str(finished_tourney_games[username])} games finished)\n" + summary += f"{username}: {round(count,2)}/300 VPs ({str(finished_tourney_games[username])} games)\n" asyncio.create_task(interaction.channel.send(summary) ) summary = "Faction Wins:\n" for faction, count in faction_victory_count.most_common(): @@ -347,6 +348,6 @@ async def stats(self, interaction: discord.Interaction, tourney_only:bool=False) for faction, count in faction_performance.most_common(): relative_faction_performance[faction] += int(count/max_faction_performance[faction] * 100) for faction, count in relative_faction_performance.most_common(): - summary += f"{faction}: {count} out of 100 possible points (in {str(max_faction_performance[faction]/100)} games)\n" + summary += f"{faction}: {count} out of 100 possible points (in {str(int(max_faction_performance[faction]/100))} games)\n" asyncio.create_task(interaction.channel.send(summary) )