diff options
author | Sean B. Palmer <http://inamidst.com/sbp/> | 2008-03-10 19:58:28 +0000 |
---|---|---|
committer | Sean B. Palmer <http://inamidst.com/sbp/> | 2008-03-10 19:58:28 +0000 |
commit | fb2cd452e963b8bc048161036903cd82d3b113f0 (patch) | |
tree | 81182d25fc19f538292b52a9e7c697447d5e6548 /modules/search.py | |
parent | 5cad6661c9437832e23469aba2c9f04d94b734ee (diff) | |
download | bot-fb2cd452e963b8bc048161036903cd82d3b113f0.tar.gz bot-fb2cd452e963b8bc048161036903cd82d3b113f0.tar.bz2 bot-fb2cd452e963b8bc048161036903cd82d3b113f0.zip |
Some documentation and minor fixes.
Diffstat (limited to 'modules/search.py')
-rwxr-xr-x | modules/search.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/search.py b/modules/search.py index 856d3db..fbd6596 100755 --- a/modules/search.py +++ b/modules/search.py @@ -48,6 +48,7 @@ def formatnumber(n): return ''.join(parts) def g(phenny, input): + """Queries Google for the specified input.""" query = input.group(2) if not query: return phenny.reply('.g what?') @@ -57,8 +58,10 @@ def g(phenny, input): else: phenny.reply("No results found for '%s'." % query) g.commands = ['g'] g.priority = 'high' +g.example = '.g swhack' def gc(phenny, input): + """Returns the number of Google results for the specified input.""" query = input.group(2) if not query: return phenny.reply('.gc what?') @@ -66,6 +69,7 @@ def gc(phenny, input): phenny.say(query + ': ' + num) gc.commands = ['gc'] gc.priority = 'high' +gc.example = '.gc extrapolate' r_query = re.compile( r'\+?"[^"\\]*(?:\\.[^"\\]*)*"|\[[^]\\]*(?:\\.[^]\\]*)*\]|\S+' |