Skip to content

Commit

Permalink
Last fixes for this hour
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsbirb committed Feb 24, 2025
1 parent 6a55e4d commit e51f927
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cogs/Configuration/Components/AdvancedPermissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async def callback(self, interaction: discord.Interaction):
return await interaction.followup.send(embed=embed, ephemeral=True)
await interaction.response.defer()

Config = await interaction.client.config.find_one({"_id": interaction.guild.id})
config = await interaction.client.config.find_one({"_id": interaction.guild.id})

if self.values[0] == "More Commands":
if len(self.Unused) > 0:
Expand Down
2 changes: 2 additions & 0 deletions Cogs/Configuration/Components/Infractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,8 @@ async def callback(self, interaction):
config = {"_id": interaction.guild.id, "Infraction": {}}
elif "Infraction" not in config:
config["Infraction"] = {}
elif "channel" not in config.get("Infraction", {}):
config["Infraction"]["channel"] = None

config["Infraction"]["channel"] = self.values[0].id
await interaction.client.config.update_one({"_id": interaction.guild.id}, {"$set": config})
Expand Down
6 changes: 5 additions & 1 deletion Cogs/Modules/stafffeedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,13 @@ async def ratings(
name="Ratings",
value=f"> **Average Rating**: {average_rating}/10\n> **Last Rating**: {last_rating}/10\n> **Overall**: {rating_text}",
)
value=f"> **Author:** <@{staff_ratings[-1]['author']}>\n> **Feedback:** {staff_ratings[-1]['feedback']}",
if len(value) > 1021:
value = value[:1021] + "..."
embed.add_field(
name="Last Rating",
value=f"> **Author:** <@{staff_ratings[-1]['author']}>\n> **Feedback:** {staff_ratings[-1]['feedback']}",
value=value,

)
embed.set_author(name=f"@{staff.display_name}", icon_url=staff.display_avatar)
embed.set_footer(text=f"{scope.capitalize()} Ratings")
Expand Down

0 comments on commit e51f927

Please sign in to comment.