Skip to content

Commit

Permalink
ok... cool?
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonak-Adipta-Kalita committed Mar 3, 2023
1 parent cf7f090 commit efe66c8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions bot/src/core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ async def on_guild_update(self, before: disnake.Guild, after: disnake.Guild):
async def on_command_error(
self, ctx: commands.Context, error: commands.CommandError
):
print(error)
if isinstance(error, commands.CheckFailure):
pass
if isinstance(error, commands.CommandNotFound):
Expand Down Expand Up @@ -273,14 +272,13 @@ async def on_slash_command_error(
),
ephemeral=True,
)
elif isinstance(error, disnake.errors.InteractionResponded):
await inter.edit_original_message(
embed=embeds.error_embed()
)
else:
await inter.response.send_message(
embed=embeds.error_embed(repr(error)), ephemeral=True
)
try:
await inter.response.send_message(
embed=embeds.error_embed(repr(error)), ephemeral=True
)
except disnake.errors.InteractionResponded:
await inter.edit_original_message(embed=embeds.error_embed(repr(error)))

def tictactoe_check_winner(self, winning_conditions, mark):
for condition in winning_conditions:
Expand Down

1 comment on commit efe66c8

@vercel
Copy link

@vercel vercel bot commented on efe66c8 Mar 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.