Added an error messages for an unmatched quotation mark

master
Joey Hines 2019-10-05 10:52:33 -05:00
parent 4858cccf2e
commit aefa8873f2
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,8 @@ class GeoffreyBot(commands.Bot):
return return
elif isinstance(error, commands.errors.CommandNotFound): elif isinstance(error, commands.errors.CommandNotFound):
return return
elif isinstance(error, commands.errors.ExpectedClosingQuoteError):
error_str = "It appears you are missing a quotation mark in there, better luck next time goober."
elif isinstance(error, commands.errors.BadArgument) or isinstance(error, commands.MissingRequiredArgument) or ( elif isinstance(error, commands.errors.BadArgument) or isinstance(error, commands.MissingRequiredArgument) or (
hasattr(error, "original") and isinstance(error.original, ValueError)): hasattr(error, "original") and isinstance(error.original, ValueError)):
error_str = "Well bud, you got this far. Good job! But you still h*cked up the syntax:" error_str = "Well bud, you got this far. Good job! But you still h*cked up the syntax:"