overhauled help

This commit is contained in:
neersighted 2012-02-28 10:03:43 +08:00 committed by lukeroge
parent 0fdf370733
commit c58192f72c
58 changed files with 124 additions and 117 deletions

View file

@ -11,7 +11,7 @@ def api_get(kind, query):
@hook.command
def gis(inp):
'''.gis <term> -- returns first google image result (safesearch off)'''
".gis <term> -- Returns first Google Image result (Safesearch off)."
parsed = api_get('images', inp)
if not 200 <= parsed['responseStatus'] < 300:
@ -26,7 +26,7 @@ def gis(inp):
@hook.command('g')
@hook.command
def google(inp):
'''.g/.google <query> -- returns first google search result'''
".google <query> -- Returns first google search result for <query>."
parsed = api_get('web', inp)
if not 200 <= parsed['responseStatus'] < 300: