From a3b0defa6f831cd46cfa5b355e5d4723a2d8e84a Mon Sep 17 00:00:00 2001 From: simonraven Date: Fri, 20 Mar 2009 21:10:31 +0000 Subject: [PATCH] Google.pl: Set some Local Variables: for emacs users, according to already set vim modeline. Add short usage doc at the top. infobot.help: Added google: usage documentation. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1866 c11ca15a-4712-0410-83d8-924469b57eb5 --- files/infobot.help | 8 +++++++- src/Modules/Google.pl | 12 +++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/files/infobot.help b/files/infobot.help index 59b4bd8..0d37789 100644 --- a/files/infobot.help +++ b/files/infobot.help @@ -1,5 +1,6 @@ -# Revised: 20071016 +# Revised: 20090320 # Author: Tim Riker +# Contributors: Simon C., Tim M., others (see AUTHORS) ### # Special entry @@ -205,6 +206,11 @@ freshmeat: D: Frontend to www.freshmeat.net freshmeat: U: ## freshmeat: E: ## infobot +google: D: What Is: Google Search frontend +google: D: Configuration: "chanset [_default or channelname] +Google" +google: U: ## google +google: E: ## google infobot + hex: D: Convert ascii to hex hex: U: ## hex: E: ## carrot diff --git a/src/Modules/Google.pl b/src/Modules/Google.pl index 41187a6..dd585cc 100644 --- a/src/Modules/Google.pl +++ b/src/Modules/Google.pl @@ -2,7 +2,11 @@ # was deprecated and requires a key that google no longer provides. # This new module uses REST::Google::Search # Modified by db 12-01-2008. - +# +# Usage: 'chanset _default +Google' in query window with your bot +# to enable it in all channels +# /msg botnick google OR google to use + package Google; use strict; @@ -67,3 +71,9 @@ sub GoogleSearch { 1; # vim:ts=4:sw=4:expandtab:tw=80 +# Local Variables: +# mode: cperl +# tab-width: 4 +# fill-column: 80 +# indent-tabs-mode: nil +# End: -- 2.39.2