Added more triggers to .gis
This commit is contained in:
parent
f83f57be60
commit
ba7304a071
1 changed files with 3 additions and 1 deletions
|
@ -9,8 +9,10 @@ def api_get(kind, query):
|
||||||
return http.get_json(url % kind, q=query)
|
return http.get_json(url % kind, q=query)
|
||||||
|
|
||||||
|
|
||||||
|
@hook.command('image')
|
||||||
|
@hook.command('gis')
|
||||||
@hook.command
|
@hook.command
|
||||||
def gis(inp):
|
def googleimage(inp):
|
||||||
".gis <term> -- Returns first Google Image result (Safesearch off)."
|
".gis <term> -- Returns first Google Image result (Safesearch off)."
|
||||||
|
|
||||||
parsed = api_get('images', inp)
|
parsed = api_get('images', inp)
|
||||||
|
|
Reference in a new issue