fix: Simplify ban command parameter definition by using describe decorator

This commit is contained in:
Slipstream 2025-05-19 18:04:14 -06:00
parent c70ffb0afb
commit e89943f1b2
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD
2 changed files with 54 additions and 73 deletions

View File

@ -6,16 +6,6 @@ import random
class MessageCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
# Hardcoded message with {target} placeholder
self.message_template = """
{target} - Your pants are slowly and deliberately removed, leaving you feeling exposed and vulnerable. The sensation is both thrilling and terrifying as a presence looms over you, the only sound being the faint rustling of fabric as your clothes are discarded.
"""
# Helper method for the message logic
async def _message_logic(self, target):
"""Core logic for the message command."""
# Replace {target} with the mentioned user
return self.message_template.format(target=target)
# --- RP Group ---
rp = app_commands.Group(name="rp", description="Roleplay commands")
@ -27,33 +17,32 @@ class MessageCog(commands.Cog):
async def sex_slash(self, interaction: discord.Interaction, member: discord.User):
"""Slash command version of sex."""
sex_messages = [
f"{interaction.user.mention} and {member.mention} shared a tender kiss that deepened into a passionate embrace.",
f"{interaction.user.mention} gently caressed {member.mention}'s cheek before their lips met, igniting a spark.",
f"With a soft touch, {interaction.user.mention} guided {member.mention}'s hand to their waist, pulling them closer.",
f"{interaction.user.mention} whispered sweet nothings into {member.mention}'s ear, sending shivers down their spine.",
f"Their bodies pressed together, {interaction.user.mention} and {member.mention} moved in a slow, sensual rhythm.",
f"{member.mention} moaned softly as {interaction.user.mention}'s touch became more intimate.",
f"{interaction.user.mention}'s fingers traced the curve of {member.mention}'s back, eliciting a gasp.",
f"In the dim light, {interaction.user.mention} admired the beauty of {member.mention}'s form.",
f"Their breaths mingled as {interaction.user.mention} and {member.mention} lost themselves in the moment.",
f"{member.mention}'s legs wrapped around {interaction.user.mention}'s waist, pulling them into a deeper connection.",
f"{interaction.user.mention} buried their face in {member.mention}'s neck, inhaling their scent.",
f"The room filled with soft sounds of pleasure as {interaction.user.mention} and {member.mention} explored each other.",
f"{member.mention}'s fingers tangled in {interaction.user.mention}'s hair, holding them close.",
f"{interaction.user.mention}'s hips moved against {member.mention}'s, building a delicious tension.",
f"With a final, shared sigh, {interaction.user.mention} and {member.mention} found release in each other's arms.",
f"{interaction.user.mention} and {member.mention} lay tangled in the sheets, their bodies still humming with the afterglow.",
f"{member.mention} rested their head on {interaction.user.mention}'s chest, listening to their heartbeat.",
f"{interaction.user.mention} kissed {member.mention}'s forehead, a silent promise of more to come.",
f"The scent of their lovemaking hung in the air as {interaction.user.mention} and {member.mention} drifted off to sleep.",
f"{interaction.user.mention} and {member.mention} woke up intertwined, the morning sun casting a warm glow on their bodies.",
f"{interaction.user.mention} and {member.mention} had a passionate night together.",
f"{interaction.user.mention} made love to {member.mention}.",
f"{member.mention} was pleasured by {interaction.user.mention}.",
f"{interaction.user.mention} and {member.mention} shared an intimate moment.",
f"{interaction.user.mention} and {member.mention} explored their desires.",
f"{member.mention} felt a deep connection with {interaction.user.mention} during their encounter.",
f"{interaction.user.mention} and {member.mention} experienced mutual pleasure."
f"{interaction.user.mention} roughly pins {member.mention} against the wall, their lips crashing together in a desperate, hungry kiss.",
f"{interaction.user.mention}'s hands roam possessively over {member.mention}'s body, leaving a trail of heat in their wake.",
f"A low moan escapes {member.mention}'s throat as {interaction.user.mention} finds a particularly sensitive spot.",
f"Their bodies grind together, the friction building an unbearable tension between {interaction.user.mention} and {member.mention}.",
f"{interaction.user.mention} whispers filthy promises in {member.mention}'s ear, making them tremble with anticipation.",
f"{member.mention}'s nails dig into {interaction.user.mention}'s back as they surrender to the overwhelming pleasure.",
f"The air is thick with the scent of sweat and arousal as {interaction.user.mention} and {member.mention} lose themselves in the act.",
f"{interaction.user.mention}'s thrusts become deeper, more insistent, driving {member.mention} to the brink.",
f"A shared cry of release echoes in the room as {interaction.user.mention} and {member.mention} climax together.",
f"Panting and sated, {interaction.user.mention} collapses onto {member.mention}, their bodies slick with sweat.",
f"{member.mention}'s legs are wrapped tightly around {interaction.user.mention}'s waist, unwilling to let go.",
f"{interaction.user.mention} buries their face in {member.mention}'s neck, leaving a hot, wet kiss.",
f"The sheets are tangled around {interaction.user.mention} and {member.mention}'s legs, a testament to their passionate encounter.",
f"{member.mention} traces the lines of {interaction.user.mention}'s muscles, admiring the power in their body.",
f"{interaction.user.mention} kisses {member.mention}'s lips again, a possessive, lingering kiss.",
f"The room is filled with the sounds of their heavy breathing as {interaction.user.mention} and {member.mention} slowly recover.",
f"{member.mention} moans softly as {interaction.user.mention} begins to stir, hinting at another round.",
f"{interaction.user.mention} grins wickedly at {member.mention}, knowing exactly what they want.",
f"Their bodies are still connected, unwilling to break the intimate bond they've created.",
f"{interaction.user.mention} and {member.mention} are lost in their own world, the rest of the world forgotten.",
f"{interaction.user.mention} and {member.mention} had a wild and passionate night together.",
f"{interaction.user.mention} pleasured {member.mention} intensely.",
f"{member.mention} was thoroughly dominated by {interaction.user.mention}.",
f"{interaction.user.mention} and {member.mention} explored their deepest desires without inhibition.",
f"{member.mention} felt an intense connection with {interaction.user.mention} during their explicit encounter.",
f"{interaction.user.mention} and {member.mention} experienced explosive mutual pleasure."
]
response = random.choice(sex_messages)
await interaction.response.send_message(response)
@ -62,33 +51,32 @@ class MessageCog(commands.Cog):
async def sex_legacy(self, ctx: commands.Context, member: discord.User):
"""Legacy command version of sex."""
sex_messages = [
f"{ctx.author.mention} and {member.mention} shared a tender kiss that deepened into a passionate embrace.",
f"{ctx.author.mention} gently caressed {member.mention}'s cheek before their lips met, igniting a spark.",
f"With a soft touch, {ctx.author.mention} guided {member.mention}'s hand to their waist, pulling them closer.",
f"{ctx.author.mention} whispered sweet nothings into {member.mention}'s ear, sending shivers down their spine.",
f"Their bodies pressed together, {ctx.author.mention} and {member.mention} moved in a slow, sensual rhythm.",
f"{member.mention} moaned softly as {ctx.author.mention}'s touch became more intimate.",
f"{ctx.author.mention}'s fingers traced the curve of {member.mention}'s back, eliciting a gasp.",
f"In the dim light, {ctx.author.mention} admired the beauty of {member.mention}'s form.",
f"Their breaths mingled as {ctx.author.mention} and {member.mention} lost themselves in the moment.",
f"{member.mention}'s legs wrapped around {ctx.author.mention}'s waist, pulling them into a deeper connection.",
f"{ctx.author.mention} buried their face in {member.mention}'s neck, inhaling their scent.",
f"The room filled with soft sounds of pleasure as {ctx.author.mention} and {member.mention} explored each other.",
f"{member.mention}'s fingers tangled in {ctx.author.mention}'s hair, holding them close.",
f"{ctx.author.mention}'s hips moved against {member.mention}'s, building a delicious tension.",
f"With a final, shared sigh, {ctx.author.mention} and {member.mention} found release in each other's arms.",
f"{ctx.author.mention} and {member.mention} lay tangled in the sheets, their bodies still humming with the afterglow.",
f"{member.mention} rested their head on {ctx.author.mention}'s chest, listening to their heartbeat.",
f"{ctx.author.mention} kissed {member.mention}'s forehead, a silent promise of more to come.",
f"The scent of their lovemaking hung in the air as {ctx.author.mention} and {member.mention} drifted off to sleep.",
f"{ctx.author.mention} and {member.mention} woke up intertwined, the morning sun casting a warm glow on their bodies.",
f"{ctx.author.mention} and {member.mention} had a passionate night together.",
f"{ctx.author.mention} made love to {member.mention}.",
f"{member.mention} was pleasured by {ctx.author.mention}.",
f"{ctx.author.mention} and {member.mention} shared an intimate moment.",
f"{ctx.author.mention} and {member.mention} explored their desires.",
f"{member.mention} felt a deep connection with {ctx.author.mention} during their encounter.",
f"{ctx.author.mention} and {member.mention} experienced mutual pleasure."
f"{ctx.author.mention} roughly pins {member.mention} against the wall, their lips crashing together in a desperate, hungry kiss.",
f"{ctx.author.mention}'s hands roam possessively over {member.mention}'s body, leaving a trail of heat in their wake.",
f"A low moan escapes {member.mention}'s throat as {ctx.author.mention} finds a particularly sensitive spot.",
f"Their bodies grind together, the friction building an unbearable tension between {ctx.author.mention} and {member.mention}.",
f"{ctx.author.mention} whispers filthy promises in {member.mention}'s ear, making them tremble with anticipation.",
f"{member.mention}'s nails dig into {ctx.author.mention}'s back as they surrender to the overwhelming pleasure.",
f"The air is thick with the scent of sweat and arousal as {ctx.author.mention} and {member.mention} lose themselves in the act.",
f"{ctx.author.mention}'s thrusts become deeper, more insistent, driving {member.mention} to the brink.",
f"A shared cry of release echoes in the room as {ctx.author.mention} and {member.mention} climax together.",
f"Panting and sated, {ctx.author.mention} collapses onto {member.mention}, their bodies slick with sweat.",
f"{member.mention}'s legs are wrapped tightly around {ctx.author.mention}'s waist, unwilling to let go.",
f"{ctx.author.mention} buries their face in {member.mention}'s neck, leaving a hot, wet kiss.",
f"The sheets are tangled around {ctx.author.mention} and {member.mention}'s legs, a testament to their passionate encounter.",
f"{member.mention} traces the lines of {ctx.author.mention}'s muscles, admiring the power in their body.",
f"{ctx.author.mention} kisses {member.mention}'s lips again, a possessive, lingering kiss.",
f"The room is filled with the sounds of their heavy breathing as {ctx.author.mention} and {member.mention} slowly recover.",
f"{member.mention} moans softly as {ctx.author.mention} begins to stir, hinting at another round.",
f"{ctx.author.mention} grins wickedly at {member.mention}, knowing exactly what they want.",
f"Their bodies are still connected, unwilling to break the intimate bond they've created.",
f"{ctx.author.mention} and {member.mention} are lost in their own world, the rest of the world forgotten.",
f"{ctx.author.mention} and {member.mention} had a wild and passionate night together.",
f"{ctx.author.mention} pleasured {member.mention} intensely.",
f"{member.mention} was thoroughly dominated by {ctx.author.mention}.",
f"{ctx.author.mention} and {member.mention} explored their deepest desires without inhibition.",
f"{member.mention} felt an intense connection with {ctx.author.mention} during their explicit encounter.",
f"{ctx.author.mention} and {member.mention} experienced explosive mutual pleasure."
]
response = random.choice(sex_messages)
await ctx.reply(response)

View File

@ -40,6 +40,8 @@ class ModerationCog(commands.Cog):
callback=self.moderate_ban_callback,
parent=self.moderate_group
)
# Define the send_dm parameter directly in the command
# Instead of using Parameter class, we use the describe decorator
app_commands.describe(
member="The member to ban",
reason="The reason for the ban",
@ -47,15 +49,6 @@ class ModerationCog(commands.Cog):
send_dm="Whether to send a DM notification to the user (default: True)"
)(ban_command)
# Add the send_dm parameter with a default value of True
send_dm_param = app_commands.Parameter(
name="send_dm",
description="Whether to send a DM notification to the user",
type=bool,
default=True
)
ban_command.parameters.append(send_dm_param)
self.moderate_group.add_command(ban_command)
# --- Unban Command ---