@respond_to("image me (?P<search_query>.*)$")
    def image_me(self, message, search_query):
        data = {
            "q": search_query,
            "v": "1.0",
            "safe": "active",
            "rsz": "8"
        }
        r = requests.get("http://ajax.googleapis.com/ajax/services/search/images", params=data)
        try:
            results = r.json()["responseData"]["results"]
        except TypeError:
            results = []
        if len(results) > 0:
            url = random.choice(results)["unescapedUrl"]
            self.say("%s" % url, message=message)
        else:
            self.say("Couldn't find anything!", message=message)
image me ___ : Search google images for ___, and post a random one.
dataset/ETHPy150Open skoczen/will/will/plugins/productivity/images.py/ImagesPlugin.image_me