foodforus: display errors
This commit is contained in:
@@ -70,6 +70,9 @@ def foodvote(phenny, input):
|
|||||||
raise GrumbleError("Uh oh, I couldn't contact foodforus. HOW WILL WE "\
|
raise GrumbleError("Uh oh, I couldn't contact foodforus. HOW WILL WE "\
|
||||||
"EAT NOW‽")
|
"EAT NOW‽")
|
||||||
|
|
||||||
|
if 'error' in data:
|
||||||
|
phenny.reply(data['error'])
|
||||||
|
else:
|
||||||
phenny.reply("Your vote has been recorded.")
|
phenny.reply("Your vote has been recorded.")
|
||||||
foodvote.rule = (['foodvote'], r'(.*) (\d{2}:\d{2})( .*)?')
|
foodvote.rule = (['foodvote'], r'(.*) (\d{2}:\d{2})( .*)?')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user