Skip to content

Commit

Permalink
Pre-commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
TLNBS2405 committed Mar 14, 2024
1 parent f95dcde commit 089dcce
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/heihachi/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ async def _feedback_cmd(interaction: discord.Interaction, message: str) -> None:
# TODO: possible way to refactor these checks using discord.py library?
# discord.ext.commands.Bot.check()
try:

feedback_message = "Feedback from **{}** with ID **{}** in **{}** \n- {}\n".format(
str(interaction.user.name),
interaction.user.id,
Expand All @@ -156,7 +155,6 @@ async def _feedback_cmd(interaction: discord.Interaction, message: str) -> None:
except Exception as e:
result = embed.get_error_embed(f"Feedback couldn't be sent, caused by: {traceback.format_exc()}")


await interaction.response.send_message(embed=result, ephemeral=False)
else:
logger.warning("Feedback or Action channel ID is not set. Disabling feedback command.")
Expand All @@ -165,7 +163,6 @@ async def _feedback_cmd(interaction: discord.Interaction, message: str) -> None:
async def _help_command(interaction: discord.Interaction) -> None:
logger.info(f"Received command from {interaction.user.name} in {interaction.guild}: /help")
if not (self._is_user_blacklisted(str(interaction.user.id)) or self._is_author_newly_created(interaction)):

help_embed = embed.get_help_embed(self.frame_service)

await interaction.response.send_message(embed=help_embed, ephemeral=False)

0 comments on commit 089dcce

Please sign in to comment.