From 5c0f43ed7b15857acf17949f4243c434b4ebdfbc Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sat, 2 Feb 2019 10:33:58 -0600 Subject: [PATCH] Added error message for DataError --- GeoffreyBot/geoffrey.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GeoffreyBot/geoffrey.py b/GeoffreyBot/geoffrey.py index 4973e17..47f47b2 100644 --- a/GeoffreyBot/geoffrey.py +++ b/GeoffreyBot/geoffrey.py @@ -93,6 +93,9 @@ class GeoffreyBot(commands.Bot): elif e == "TypeError": error_str = "Well bud, you got this far. Good job! But you still h*cked up the syntax. Check {}help." \ .format(self.prefix) + elif e == "DataError": + error_str = "Slow down their slugger, that's a logn word or number you are trying to cram into me, try " \ + "again with something smaller" if error_str is '': await self.send_error_message(