be a coward

This commit is contained in:
Christine Dodrill 2015-11-04 17:27:52 -08:00
parent e2d4590d64
commit 84cb8055db
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ def php_fact(inp):
@hook.regex("(.*) fact$")
def printerfact(inp, say=None):
if len(inp.group(1).split()) != 1:
return None
return "I cowardly refuse to look that up"
r = requests.get('https://catfacts-api.appspot.com/api/facts?number=1')
fact = r.json()['facts'][0]