mirror of
https://github.com/kennethreitz-archive/changebot.git
synced 2026-06-05 23:40:18 +00:00
safe search
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ hear /wiki me (.*)/i, (message) ->
|
||||
|
||||
hear /image me (.*)/i, (message) ->
|
||||
phrase = escape(message.match[1])
|
||||
url = "http://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=8&q=#{phrase}"
|
||||
url = "http://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=8&safe=active&q=#{phrase}"
|
||||
|
||||
get url, (body) ->
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user