Skip to content

Commit 843a362

Browse files
small improvement
1 parent 240bd87 commit 843a362

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

bot.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,9 @@ async def on_app_command_error(self, interaction: discord.Interaction, error: ap
828828
if isinstance(error, app_commands.MissingPermissions):
829829
if interaction.command.name == "logout":
830830
await interaction.response.send_message(
831-
"Error: You do not have permission to use this command. Only the bot owner can use the `logout` command.",
832-
ephemeral=True)
831+
"Error: You do not have permission to use this command. "
832+
"Only the bot owner can use the `logout` command. \n"
833+
"https://http.cat/status/400", ephemeral=True)
833834
# Handle command not found error
834835
elif isinstance(error, app_commands.CommandNotFound):
835836
await interaction.response.send_message(
@@ -857,8 +858,9 @@ async def logout_bot(self, interaction: discord.Interaction):
857858
await self.bot.close()
858859
else:
859860
await interaction.response.send_message(
860-
"Error: You do not have permission to use this command. Only the bot owner can use the `logout` command.",
861-
ephemeral=True)
861+
"Error: You do not have permission to use this command. "
862+
"Only the bot owner can use the `logout` command. \n"
863+
"https://http.cat/status/400", ephemeral=True)
862864

863865
# Task to send a random cake GIF every 24 hours
864866
@tasks.loop(hours=24) # Run every 24 hours

0 commit comments

Comments
 (0)