Module Expr Str Import alias Import alias Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Yield For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str ListLoad body Expr Yield Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body If NameLoad body Return Call AttributeLoad NameLoad attr ListComp NameLoad comprehension NameStore Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Print Call NameLoad Str
N/A N/A 
    google image me
    ~~~~~~~~~~~~~~~

    image me -- ask me for an image of anything

    # Sample usage:
    from gendo import Gendo
    import image_me as google

    gendo = Gendo('xoxb-your-key-here')

    @gendo.listen_for('image me')
    def image_me(user, message):
        query = message.replace('image me', '')
        return google.random_google_image_search(query)

    if __name__ == '__main__':
        gendo.run()
 N/A requests N/A random N/A URL https://www.googleapis.com/customsearch/v1 N/A CSE_KEY N/A CSE_ID google_image_search N/A N/A query N/A N/A N/A resp N/A N/A requests get URL params N/A v searchType q cx key 1.0 image N/A N/A query strip CSE_ID CSE_KEY N/A N/A N/A resp ok N/A N/A N/A N/A i N/A N/A N/A N/A resp json get items N/A N/A N/A N/A N/A N/A i get link N/A random_google_image_search N/A N/A query N/A N/A N/A query N/A N/A N/A N/A random choice N/A r N/A r N/A google_image_search query N/A N/A N/A __name__ __main__ N/A N/A N/A random_google_image_search nick ficano