Added error message for DataError

master
Joey Hines 2019-02-02 10:33:58 -06:00
parent f5a61e02c0
commit 5c0f43ed7b
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ class GeoffreyBot(commands.Bot):
elif e == "TypeError": elif e == "TypeError":
error_str = "Well bud, you got this far. Good job! But you still h*cked up the syntax. Check {}help." \ error_str = "Well bud, you got this far. Good job! But you still h*cked up the syntax. Check {}help." \
.format(self.prefix) .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 '': if error_str is '':
await self.send_error_message( await self.send_error_message(