Browse Source

added useful help text to errors, fulfils #45

tags/v2.2.0
Roxie Gibson 5 years ago
parent
commit
4c833c0ceb
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      roxbot/core.py

+ 3
- 1
roxbot/core.py View File

@@ -220,11 +220,13 @@ class Core(commands.Cog):

# ActualErrorHandling
embed = discord.Embed(colour=roxbot.EmbedColours.red)

if case:
embed.description = case
embed.description = case + "\n\n*If you are having trouble, don't be afraid to use* `{}help`".format(ctx.prefix)
elif user_error_case:
embed.description = user_error_case
embed.colour = roxbot.EmbedColours.orange
embed.description += "\n\n*If you are having trouble, don't be afraid to use* `{0}help` *or* `{0}help {1}` *if you need help with this certain command.*".format(ctx.prefix, ctx.invoked_with)
elif isinstance(error, commands.CommandInvokeError):
# YOUTUBE_DL ERROR HANDLING
if isinstance(error.original, youtube_dl.utils.GeoRestrictedError):

Loading…
Cancel
Save