Added an error messages for an unmatched quotation mark
parent
4858cccf2e
commit
aefa8873f2
|
@ -88,6 +88,8 @@ class GeoffreyBot(commands.Bot):
|
|||
return
|
||||
elif isinstance(error, commands.errors.CommandNotFound):
|
||||
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 (
|
||||
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:"
|
||||
|
|
Loading…
Reference in New Issue