IRC Help

Soldato
Joined
15 Jan 2004
Posts
10,185
You want a whole bot or a script?

In eggdrop which uses TCL I used to following:

Code:
package require http
set agent "Mozilla/4.75 (X11; U; Linux 2.2.17; i586; Nav)"

bind pub - !search public:search
proc public:search {nick host hand chan text} {

	global agent all
	set url "http://www.something.com/search.php?=[lindex $text 0]"
	set http [::http::config -useragent $agent]    
	set http [::http::geturl $url]
	set html [::http::data $http]
	regsub -all "\n" $html "" html
	regsub -all "members and" $html "" html

	regexp {<b>(.*?)</b>} $html - all

	putserv "PRIVMSG $chan :$active"

}

I haven't coded tcl in a while, but that should work, providing you have the search page. The first result would be inbetween the <b> tags.

But you need to supply a bit more information on what you need :)
 
Associate
Joined
5 Jun 2005
Posts
1,753
Location
Tasmania (Australia)
You'll need a socket bot for that.

Head over to mircscripts.org and ask for some help in their forums, or check the download section, there might be one there.

I'd write you a bot, but i suck with everything socket related. :(
 
Back
Top Bottom