From aefa8873f28221c0aa0d34717f9721d49ff1410a Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sat, 5 Oct 2019 10:52:33 -0500 Subject: [PATCH] Added an error messages for an unmatched quotation mark --- GeoffreyBot/geoffrey.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GeoffreyBot/geoffrey.py b/GeoffreyBot/geoffrey.py index 0f87099..12aa40c 100644 --- a/GeoffreyBot/geoffrey.py +++ b/GeoffreyBot/geoffrey.py @@ -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:"