Removed several commands

This commit is contained in:
2026-02-05 07:49:44 -05:00
parent a6e1bf29de
commit 7b27ab8b4b
6 changed files with 477 additions and 302 deletions

View File

@@ -158,23 +158,6 @@ class Misc(commands.Cog):
traceback.print_exc()
return await ctx.respond(f"Error: {str(e)}")
@bridge.bridge_command() # type: ignore
@is_spamchan_or_drugs()
async def listshoves(self, ctx) -> None:
"""
List Available Fates for shove command
"""
fates: str = ""
try:
for fate in self.FATES:
fates += f"**- {fate}**\n"
embed: discord.Embed = discord.Embed(
title="Available Fates (for .shove)", description=fates.strip()
)
return await ctx.respond(embed=embed)
except Exception as e:
traceback.print_exc()
return await ctx.respond(f"Error: {str(e)}")
@bridge.bridge_command()
async def xmas(self, ctx) -> None:
@@ -277,46 +260,6 @@ class Misc(commands.Cog):
traceback.print_exc()
return await ctx.respond(f"Error: {str(e)}")
@bridge.bridge_command()
async def insult(self, ctx, *, recipient: Optional[str] = None) -> None:
"""
Insult Someone (or yourself)
"""
try:
guild: Optional[discord.Guild] = self.bot.get_guild(ctx.guild.id)
if not guild:
return
authorDisplay: str = (
ctx.author.display_name
if (ctx.author.display_name is not None)
else ctx.message.author.display_name
)
if not recipient:
recipient = authorDisplay.strip()
else:
if discord.utils.raw_mentions(recipient):
# There are mentions
recipient_id: int = discord.utils.raw_mentions(recipient)[
0
] # First mention
recipient_member: Optional[discord.Member] = guild.get_member(
recipient_id
)
if not recipient_member:
return
recipient = recipient_member.display_name
else:
recipient = discord.utils.escape_mentions(recipient.strip())
with ctx.channel.typing():
insult: str = await self.util.get_insult(recipient)
if insult:
return await ctx.respond(insult)
return await ctx.respond("Insult failed :(")
except Exception as e:
traceback.print_exc()
return await ctx.respond(f"Insult failed :(\nError: {str(e)}")
@bridge.bridge_command()
async def compliment(
self, ctx, *, recipient: Optional[str] = None, language: Optional[str] = "en"
@@ -644,53 +587,6 @@ class Misc(commands.Cog):
traceback.print_exc()
return await ctx.respond(f"Failed: {str(e)}")
@bridge.bridge_command()
async def cyanide(self, ctx, *, recipient: Optional[str] = None) -> None:
"""
Cyanide!
"""
authorDisplay: str = (
ctx.author.display_name
if (ctx.author.display_name is not None)
else ctx.message.author.display_name
)
if not recipient:
recipient = authorDisplay.strip()
recipient_normal: str = ctx.author.mention
else:
recipient_normal = recipient
if discord.utils.raw_mentions(recipient):
# There are mentions
recipient_id: int = discord.utils.raw_mentions(recipient)[
0
] # First mention
guild: Optional[discord.Guild] = self.bot.get_guild(ctx.guild.id)
if not guild:
return
recipient_member: Optional[discord.Member] = guild.get_member(
recipient_id
)
if not recipient_member:
return
recipient = recipient_member.display_name
recipient_normal = recipient_member.mention
else:
recipient = discord.utils.escape_mentions(recipient.strip())
try:
response = await ctx.respond(
f"*doses **{recipient_normal}** with Zyklon-B*"
)
await self.util.increment_counter("cyanides")
try:
await response.add_reaction(emoji="☠️")
return await response.add_reaction(emoji="🇩🇪")
except Exception as e:
logging.debug("Failed to add cynaide reaction: %s", str(e))
except Exception as e:
traceback.print_exc()
return await ctx.respond(f"Failed: {str(e)}")
@bridge.bridge_command()
async def gravy(self, ctx, *, recipient: Optional[str] = None) -> None:
"""
@@ -784,48 +680,6 @@ class Misc(commands.Cog):
traceback.print_exc()
return await ctx.respond(f"Failed: {str(e)}")
@bridge.bridge_command(aliases=["bully"])
async def shove(self, ctx, *, recipient: Optional[str] = None) -> None:
"""
Shove someone! (Or yourself)
"""
chosen_fate: str = random.choice(self.FATES)
authorDisplay: str = (
ctx.author.display_name
if (ctx.author.display_name is not None)
else ctx.message.author.display_name
)
if not recipient:
recipient = authorDisplay.strip()
recipient_normal: str = ctx.author.mention
else:
recipient_normal = recipient
if discord.utils.raw_mentions(recipient):
# There are mentions
recipient_id: int = discord.utils.raw_mentions(recipient)[
0
] # First mention
guild: Optional[discord.Guild] = self.bot.get_guild(ctx.guild.id)
if not guild:
return
recipient_member: Optional[discord.Member] = guild.get_member(
recipient_id
)
if not recipient_member:
return
recipient = recipient_member.display_name
recipient_normal = recipient_member.mention
else:
recipient = discord.utils.escape_mentions(recipient.strip())
try:
await ctx.respond(f"*shoves **{recipient_normal}** {chosen_fate}*")
await self.util.increment_counter("shoves")
except Exception as e:
traceback.print_exc()
return await ctx.respond(f"Failed: {str(e)}")
@bridge.bridge_command()
async def coffee(self, ctx, *, recipient: Optional[str] = None) -> None:
"""
@@ -968,50 +822,6 @@ class Misc(commands.Cog):
traceback.print_exc()
return await ctx.respond(f"Failed: {str(e)}")
@bridge.bridge_command()
async def ritalini(self, ctx, *, recipient: Optional[str] = None) -> None:
"""
Ritalini!
"""
authorDisplay = (
ctx.author.display_name
if (ctx.author.display_name is not None)
else ctx.message.author.display_name
)
if not recipient:
recipient = authorDisplay.strip()
recipient_normal: str = ctx.author.mention
else:
recipient_normal = recipient
if discord.utils.raw_mentions(recipient):
# There are mentions
recipient_id: int = discord.utils.raw_mentions(recipient)[
0
] # First mention
guild: Optional[discord.Guild] = self.bot.get_guild(ctx.guild.id)
if not guild:
return
recipient_member: Optional[discord.Member] = guild.get_member(
recipient_id
)
if not recipient_member:
return
recipient = recipient_member.display_name
recipient_normal = recipient_member.mention
else:
recipient = discord.utils.escape_mentions(recipient.strip())
try:
response = await ctx.respond(
f"*serves **{recipient_normal}** a plate of ritalini* 😉"
)
await response.add_reaction(emoji="💊")
await response.add_reaction(emoji="🍝")
await self.util.increment_counter("ritalinis")
except Exception as e:
traceback.print_exc()
return await ctx.respond(f"Failed: {str(e)}")
@bridge.bridge_command(aliases=["gc"])
async def grilledcheese(self, ctx, *, recipient: Optional[str] = None) -> None:
"""
@@ -1186,104 +996,6 @@ class Misc(commands.Cog):
traceback.print_exc()
return await ctx.respond(f"Failed: {str(e)}")
@bridge.bridge_command()
async def hang(self, ctx, *, recipient: Optional[str] = None) -> None:
"""
Hang someone!
"""
authorDisplay = (
ctx.author.display_name
if (ctx.author.display_name is not None)
else ctx.message.author.display_name
)
if not recipient:
recipient = authorDisplay.strip()
recipient_normal: str = ctx.author.mention
else:
recipient_normal = recipient
if discord.utils.raw_mentions(recipient):
# There are mentions
recipient_id: int = discord.utils.raw_mentions(recipient)[
0
] # First mention
guild: Optional[discord.Guild] = self.bot.get_guild(ctx.guild.id)
if not guild:
return
recipient_member: Optional[discord.Member] = guild.get_member(
recipient_id
)
if not recipient_member:
return
recipient = recipient_member.display_name
recipient_normal = recipient_member.mention
else:
recipient = discord.utils.escape_mentions(recipient.strip())
try:
response = await ctx.respond(
f"*sends **{recipient_normal}** to the Gallows to be hanged asynchronely*"
)
await self.util.increment_counter("hangings")
try:
return await response.add_reaction(emoji="☠️")
except Exception as e:
logging.debug("Failed to add hang reaction: %s", str(e))
except Exception as e:
await ctx.respond(f"Failed: {str(e)}")
traceback.print_exc()
return
@bridge.bridge_command()
async def touch(self, ctx, *, recipient: Optional[str] = None) -> None:
"""
Touch someone!
"""
guild: Optional[discord.Guild] = self.bot.get_guild(ctx.guild.id)
if not guild:
return
no_self_touch: str = ", don't fucking touch yourself here. You disgust me."
if not recipient:
recipient_normal: str = ctx.author.mention
await ctx.respond(f"{recipient_normal}{no_self_touch}")
try:
await ctx.message.add_reaction(emoji="🤮")
except Exception as e:
logging.debug(
"Failed to add puke reactin for touch command: %s", str(e)
)
await self.util.increment_counter("touch_denials")
return
else:
recipient_normal = recipient
if discord.utils.raw_mentions(recipient):
# There are mentions
recipient_id: int = discord.utils.raw_mentions(recipient)[
0
] # First mention
if not guild:
return
recipient_member: Optional[discord.Member] = guild.get_member(
recipient_id
)
if not recipient_member:
return
recipient = recipient_member.display_name
recipient_normal = recipient_member.mention
else:
recipient = discord.utils.escape_mentions(recipient.strip())
try:
response = await ctx.respond(
f"*touches **{recipient_normal}** for **{ctx.author.mention}** because they wouldn't touch them with a shitty stick!*"
)
await self.util.increment_counter("touches")
try:
return await response.add_reaction(emoji="👉")
except Exception as e:
logging.debug("Failed to add touch reaction: %s", str(e))
except Exception as e:
traceback.print_exc()
return await ctx.respond(f"Failed: {str(e)}")
@bridge.bridge_command() # type: ignore
@is_spamchan_or_drugs()