zulip/api/bots/googlesearch
Rohitt Vashishtha db9918f3d6 bots: Move contrib_bots to api/bots*.
This will make it convenient to include these bots in Zulip API
releases on pypi.

Fix #5009.
2017-06-01 12:31:54 -07:00
..
__init__.py bots: Move contrib_bots to api/bots*. 2017-06-01 12:31:54 -07:00
googlesearch.py bots: Move contrib_bots to api/bots*. 2017-06-01 12:31:54 -07:00
readme.md bots: Move contrib_bots to api/bots*. 2017-06-01 12:31:54 -07:00

readme.md

Google Search bot

This bot allows users to do Google search queries and have the bot respond with the first search result. It is by default set to the highest safe-search setting.

Usage

Run this bot as described here.

Use this bot with the following command

@mentioned-bot <search terms>

This will return the first link found by Google for <search terms> and print the resulting URL.

If no <search terms> are entered, a help message is printed instead.

If there was an error in the process of running the search (socket errors, Google search function failed, or general failures), an error message is returned.