updated some api stuff

This commit is contained in:
Luke Rogers 2012-02-16 07:18:56 +13:00
parent f75aeea2a9
commit a997e37718
5 changed files with 28 additions and 15 deletions

View file

@ -34,7 +34,7 @@ def wolframalpha(inp, bot=None):
ret = '. '.join(pod_texts)
if not pod_texts:
return 'no results'
return 'No results.'
ret = re.sub(r'\\(.)', r'\1', ret)
@ -48,6 +48,6 @@ def wolframalpha(inp, bot=None):
ret = re.sub(r'\W+$', '', ret) + '...'
if not ret:
return 'no results'
return 'No results.'
return ret