From ba7304a071e66ae908d40ae7cc8fee9c7f078d78 Mon Sep 17 00:00:00 2001 From: neersighted Date: Mon, 2 Apr 2012 08:20:17 -0700 Subject: [PATCH] Added more triggers to .gis --- plugins/google.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/google.py b/plugins/google.py index c4593b2..bf2a81c 100755 --- a/plugins/google.py +++ b/plugins/google.py @@ -9,8 +9,10 @@ def api_get(kind, query): return http.get_json(url % kind, q=query) +@hook.command('image') +@hook.command('gis') @hook.command -def gis(inp): +def googleimage(inp): ".gis -- Returns first Google Image result (Safesearch off)." parsed = api_get('images', inp)