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