Page 1 of 2

Mr. Obvious Google Search Script

PostPosted: Fri Nov 06, 2009 8:01 pm
by Ford
I stumbled on the lmgtfy.com Smart As* link the other day, so I decided to script it for cases when people are Obviously just to lazy to use their own Google.
Syntax is !Obvious search words here.
The trigger is on by default. You can turn it off from the Status or Channel window.
Halfops or higher to use the trigger.

To see what it does click HERE

Code: Select all
;Mr Obvious Google Search Script by Ford_Lawnmower -- irc.GeekShed.net #Script-Help
menu Channel,Status {
  .$iif($group(#Obvious) == On,$style(1)) Mr. Obvious Trigger
  ..$iif($group(#Obvious) == On,$style(2)) On: .enable #Obvious
  ..$iif($group(#Obvious) == Off,$style(2)) Off: .disable #Obvious
}
#Obvious on
On *:Text:!Obvious *:#: {
  if ($regex($nick($chan,$nick).pnick,/(!|~|&|@|%)/)) {
    if ($timer($+(Obvious,$network,$nick))) { return }
    .timer $+ $+(Obvious,$network,$nick) 1 4 noop
    .msg $chan You will find the answer here: $+(,http://lmgtfy.com/?q=,$replace($2-,$chr(32),+))
  }
}
#Obvious end

Re: Mr. Obvious Google Search Script

PostPosted: Sat Nov 07, 2009 8:23 pm
by AdamD
I saw this post on http://hawkee.com/

this is a good script i use it on my bot

#AdamD is my bots home by the way

love the script Ford!

Re: Mr. Obvious Google Search Script

PostPosted: Sun Nov 08, 2009 1:48 am
by Ford
Thank you AdamD :)

Re: Mr. Obvious Google Search Script

PostPosted: Sun Nov 08, 2009 8:45 am
by AdamD
No Problem and did you make that script?

Re: Mr. Obvious Google Search Script

PostPosted: Mon Nov 09, 2009 4:50 am
by Ford
I just made the mIRC script that I posted here AdamD.
The real credit goes to the lmgtfy(let me google that for you) group.
Very innovative and funny stuff :)

Re: Mr. Obvious Google Search Script

PostPosted: Mon Nov 09, 2009 7:46 am
by AdamD
So you designed the script but all the links to lmgtfy i love that site!

Re: Mr. Obvious Google Search Script

PostPosted: Tue Nov 10, 2009 7:40 pm
by Pctech37
I bet you could even do a simple one-liner for !search

Re: Mr. Obvious Google Search Script

PostPosted: Wed Nov 11, 2009 11:46 pm
by Ford
I bet you could even do a simple one-liner for !search

No idea what your point is here Pctech37. Please elaborate.

Re: Mr. Obvious Google Search Script

PostPosted: Tue Nov 17, 2009 12:16 am
by Pctech37
Code: Select all
On *:TEXT:#chan:say lmgtfy.com/?= $+ $1-

sumin like that

no need for disable/enable

Re: Mr. Obvious Google Search Script

PostPosted: Tue Nov 17, 2009 1:42 am
by Ford
Then you have removed the menu's, the flood protection and the access control Pctech37 ;/
This isn't my first script. I put that stuff there for a reason.