Mr. Obvious Google Search Script

Moderator: GeekShed.Net Staff

Mr. Obvious Google Search Script

Postby Ford » Fri Nov 06, 2009 8:01 pm

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
Ford
 
Posts: 48
Joined: Wed Oct 28, 2009 1:01 am

Re: Mr. Obvious Google Search Script

Postby AdamD » Sat Nov 07, 2009 8:23 pm

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!
AdamD
 
Posts: 44
Joined: Tue Nov 03, 2009 6:40 pm
Location: United Kingdom

Re: Mr. Obvious Google Search Script

Postby Ford » Sun Nov 08, 2009 1:48 am

Thank you AdamD :)
Ford
 
Posts: 48
Joined: Wed Oct 28, 2009 1:01 am

Re: Mr. Obvious Google Search Script

Postby AdamD » Sun Nov 08, 2009 8:45 am

No Problem and did you make that script?
AdamD
 
Posts: 44
Joined: Tue Nov 03, 2009 6:40 pm
Location: United Kingdom

Re: Mr. Obvious Google Search Script

Postby Ford » Mon Nov 09, 2009 4:50 am

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 :)
Ford
 
Posts: 48
Joined: Wed Oct 28, 2009 1:01 am

Re: Mr. Obvious Google Search Script

Postby AdamD » Mon Nov 09, 2009 7:46 am

So you designed the script but all the links to lmgtfy i love that site!
AdamD
 
Posts: 44
Joined: Tue Nov 03, 2009 6:40 pm
Location: United Kingdom

Re: Mr. Obvious Google Search Script

Postby Pctech37 » Tue Nov 10, 2009 7:40 pm

I bet you could even do a simple one-liner for !search
Pctech37
"31337 h4X0rZ" and student
#Pctech37 Founder
Image
Pctech37
 
Posts: 26
Joined: Sat Nov 07, 2009 2:11 am
Location: Everett, Washington, United States of America

Re: Mr. Obvious Google Search Script

Postby Ford » Wed Nov 11, 2009 11:46 pm

I bet you could even do a simple one-liner for !search

No idea what your point is here Pctech37. Please elaborate.
Ford
 
Posts: 48
Joined: Wed Oct 28, 2009 1:01 am

Re: Mr. Obvious Google Search Script

Postby Pctech37 » Tue Nov 17, 2009 12:16 am

Code: Select all
On *:TEXT:#chan:say lmgtfy.com/?= $+ $1-

sumin like that

no need for disable/enable
Pctech37
"31337 h4X0rZ" and student
#Pctech37 Founder
Image
Pctech37
 
Posts: 26
Joined: Sat Nov 07, 2009 2:11 am
Location: Everett, Washington, United States of America

Re: Mr. Obvious Google Search Script

Postby Ford » Tue Nov 17, 2009 1:42 am

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.
Ford
 
Posts: 48
Joined: Wed Oct 28, 2009 1:01 am

Next

Return to Script help

Who is online

Users browsing this forum: No registered users and 1 guest

cron