Skip to content

Commit

Permalink
Merge pull request #8 from Sushi-Mampfer/main
Browse files Browse the repository at this point in the history
Fix to the leaderboard command.
  • Loading branch information
Soulsender authored Oct 23, 2024
2 parents ebe116d + f6f3acf commit 5ef2045
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cogs/leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ async def on_ready(self):

@nextcord.slash_command(name="leaderboard", description="Frong leaderboard")
async def leaderboard(self, interaction: nextcord.Interaction):
await interaction.response.defer()
csv_dict = {}
data = ""
total = 0
Expand Down Expand Up @@ -46,7 +47,7 @@ async def leaderboard(self, interaction: nextcord.Interaction):
embed = nextcord.Embed(title=":crown: **LEADERBOARD**", color=0xd6b509)
embed.add_field(name=":speech_balloon: __FRONGS BY USER__", value=data,inline=False)
embed.add_field(name=":loudspeaker: __TOTAL FRONGS__", value=total,inline=False)
await interaction.response.send_message(embed=embed, ephemeral=False)
await interaction.followup.send(embed=embed, ephemeral=False)

def setup(bot):
bot.add_cog(Leaderboard(bot))
bot.add_cog(Leaderboard(bot))

0 comments on commit 5ef2045

Please sign in to comment.