Add to set's return messages.

This commit is contained in:
2025-03-14 17:04:20 -04:00
parent 65de7baeda
commit 7759bbc648
+13 -7
View File
@@ -67,7 +67,9 @@ class SetCog(commands.Cog, name="Set command."):
return return
await send_highscore_message(session, interaction.guild, group) await send_highscore_message(session, interaction.guild, group)
await interaction.response.send_message(f"{category.name} size has been updated to {size}.", ephemeral=True) await interaction.response.send_message(
f"**{category.name}** size has been updated to **{size}**.", ephemeral=True
)
@category.subcommand(description="Update the is_ascending value for a category.") @category.subcommand(description="Update the is_ascending value for a category.")
async def is_ascending( async def is_ascending(
@@ -113,7 +115,7 @@ class SetCog(commands.Cog, name="Set command."):
await send_highscore_message(session, interaction.guild, group) await send_highscore_message(session, interaction.guild, group)
await interaction.response.send_message( await interaction.response.send_message(
f"{category.name} is_ascending has been updated to {ascending}.", ephemeral=True f"**{category.name}** is_ascending has been updated to **{ascending}**.", ephemeral=True
) )
@category.subcommand(description="Update the is_validated value for a category.") @category.subcommand(description="Update the is_validated value for a category.")
@@ -150,7 +152,7 @@ class SetCog(commands.Cog, name="Set command."):
session.commit() session.commit()
await interaction.response.send_message( await interaction.response.send_message(
f"{category.name} is_validated has been updated to {validated}.", ephemeral=True f"**{category.name}** is_validated has been updated to **{validated}**.", ephemeral=True
) )
@category.subcommand(name="name", description="Change the name of a category.") @category.subcommand(name="name", description="Change the name of a category.")
@@ -195,7 +197,9 @@ class SetCog(commands.Cog, name="Set command."):
return return
await send_highscore_message(session, interaction.guild, group) await send_highscore_message(session, interaction.guild, group)
await interaction.response.send_message(f"{old_name} has been updated to {category.name}.", ephemeral=True) await interaction.response.send_message(
f"**{old_name}** has been updated to **{category.name}**.", ephemeral=True
)
@set.subcommand(description="Commands for editing a group.") @set.subcommand(description="Commands for editing a group.")
async def group(self, interaction: nextcord.Interaction) -> None: async def group(self, interaction: nextcord.Interaction) -> None:
@@ -228,7 +232,7 @@ class SetCog(commands.Cog, name="Set command."):
session.commit() session.commit()
await send_highscore_message(session, interaction.guild, group) await send_highscore_message(session, interaction.guild, group)
await interaction.response.send_message(f"{old_name} has been updated to {group.name}.", ephemeral=True) await interaction.response.send_message(f"**{old_name}** has been updated to **{group.name}**.", ephemeral=True)
@group.subcommand(description="Registers the channel for a Group's messages.") @group.subcommand(description="Registers the channel for a Group's messages.")
async def output_channel( async def output_channel(
@@ -302,7 +306,7 @@ class SetCog(commands.Cog, name="Set command."):
group.pad_length = length group.pad_length = length
session.commit() session.commit()
await interaction.response.send_message( await interaction.response.send_message(
f"Category pad length set to {length} for {group.name}", ephemeral=True f"Category pad length set to **{length}** for **{group.name}**.", ephemeral=True
) )
await send_highscore_message(session, interaction.guild, group) await send_highscore_message(session, interaction.guild, group)
@@ -369,7 +373,9 @@ class SetCog(commands.Cog, name="Set command."):
group.username_length = length group.username_length = length
session.commit() session.commit()
await interaction.response.send_message(f"Username length set to {length}.", ephemeral=True) await interaction.response.send_message(
f"Username length for **{group.name}** set to **{length}**.", ephemeral=True
)
@set.subcommand(description="Registers the channel for verification messages.") @set.subcommand(description="Registers the channel for verification messages.")
async def verify_channel( async def verify_channel(