Skip to content

Commit

Permalink
change error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWizardofGauze committed May 20, 2024
1 parent ca8b165 commit 4c0bb36
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions bruhbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def auto_backup():
return
except Exception:
owner = await bot.fetch_user(owner_id)
await owner.send("Error logged in auto backup function.")
await owner.send("Error logged in auto backup.")
ErrorLogger.run(traceback.format_exc())
return

Expand All @@ -86,7 +86,7 @@ async def send_image(ctx, response: str):
file=discord.File(f"{here}\\images\\{image}"), mention_author=False
)
except Exception: # missing image
await ctx.reply("Error logged.")
await ctx.reply("Error logged in send_image.")
ErrorLogger.run(traceback.format_exc())
return

Expand Down Expand Up @@ -144,7 +144,7 @@ async def on_message(msg):
await ctx.reply("nice", mention_author=False) # nice
return
except Exception:
await ctx.reply("Error logged.")
await ctx.reply("Error logged in on_message.")
ErrorLogger.run(traceback.format_exc())


Expand Down Expand Up @@ -252,7 +252,7 @@ async def addr(ctx, *, arg: str = None):
await ctx.reply(":ok_hand:", mention_author=False)
await ctx.send(f"**'{pre1}'** was added")
except Exception:
await ctx.reply("Error logged.")
await ctx.reply("Error logged in addr.")
ErrorLogger.run(traceback.format_exc())


Expand Down Expand Up @@ -648,7 +648,7 @@ async def buttonCancel(
return

except Exception:
await ctx.reply("Error logged.")
await ctx.reply("Error logged in delr.")
ErrorLogger.run(traceback.format_exc())


Expand Down Expand Up @@ -846,7 +846,7 @@ async def buttonPage(
mview.msg = msg
await mview.wait()
except Exception:
await ctx.reply("Error logged.")
await ctx.reply("Error logged rlist.")
ErrorLogger.run(traceback.format_exc())


Expand Down Expand Up @@ -924,7 +924,7 @@ def embed(ctx, name: str, description: str, color: int, pages: int):
else:
return
except Exception:
await ctx.reply("Error logged.")
await ctx.reply("Error logged in help.")
ErrorLogger.run(traceback.format_exc())


Expand Down Expand Up @@ -958,7 +958,7 @@ async def forza_error(ctx, error):
if isinstance(error, commands.errors.TooManyArguments):
await help(ctx, "forza")
else:
await ctx.reply("Error logged.")
await ctx.reply("Error logged in forza.")
ErrorLogger.run(traceback.format_exc())


Expand Down Expand Up @@ -1028,7 +1028,7 @@ async def logs_error(ctx, error):
if isinstance(error, commands.errors.TooManyArguments):
await ctx.reply("Invalid Subcommand")
else:
await ctx.reply("Error logged.")
await ctx.reply("Error logged in logs. Uh oh.")
ErrorLogger.run(traceback.format_exc())


Expand All @@ -1044,7 +1044,7 @@ async def clear_error(ctx, error):
if isinstance(error, commands.errors.NotOwner):
await ctx.send("You dare try to hide your crimes?")
else:
await ctx.send("Error logged.")
await ctx.send("Error logged in logs clear.")
ErrorLogger.run(traceback.format_exc())


Expand Down
4 changes: 2 additions & 2 deletions bruhbot/cogs/Names/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async def buttonAdd(
rview.wait()
except Exception:
ErrorLogger.run(traceback.format_exc())
await ctx.send("Error logged.")
await ctx.send("Error logged in Names.")

@app_commands.command(
name="addname", description="Add a name to the name generator."
Expand Down Expand Up @@ -228,4 +228,4 @@ async def on_error(self, interaction: discord.Interaction):
await addM.wait()
except Exception:
ErrorLogger.run(traceback.format_exc())
await interaction.followup.send("Error logged.")
await interaction.followup.send("Error logged in Names.")
4 changes: 2 additions & 2 deletions bruhbot/cogs/OPBR/OPBR.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async def stats(self, ctx):
await ctx.send(embed=msg)
except Exception:
ErrorLogger.run(traceback.format_exc())
await ctx.send("There was a problem. Error logged.")
await ctx.send("Error logged in OPBR.")

@stats.command()
async def all(self, ctx):
Expand Down Expand Up @@ -210,4 +210,4 @@ async def all(self, ctx):
await ctx.send(embed=msg)
except Exception:
ErrorLogger.run(traceback.format_exc())
await ctx.send("There was a problem. Error logged.")
await ctx.send("Error logged in OPBR.")

0 comments on commit 4c0bb36

Please sign in to comment.