Code: Select all
package require http
bind pub - !u stats
proc stats {nick uhost hand chan text} {
set user [lindex [split $text] 0]
if {$text == ""} {
set user $nick
}
if {$user!=""} {
set data [::http::geturl http://lmysite.com/ircstats.php?search=$user]
foreach line [split [::http::data $data] \n] {
if {$line != ""} {
putquick "PRIVMSG $chan :$line"
}
}
::http::cleanup $data
}
}
but what i need is for it to display thses stats on join
and if the member isnt a user of my site its bans there nick e.g
this is when the user joins who is a site members
and so on all this info is pulled from the php script already installed on the serverFelix2003 (Felix2003@Felix.The.Crazy.Cat) has joined. «13 people»
<FelixBot> User Details For Felix2003 > forum Rank: Admin / Forum posts: 485 Url: www.mysite.com/userdetails
now if a user joins who isnt a site member i would like his to happen
then remove the ban say 5mins laterFelix20031 (Felix2003@Felix.The.Crazy.Cat) has joined. «13 people»
*FelixBot sets mode +b Felix20031!*@*
Felix20031 was kicked by FelixBot (Member Not Found Use Your Site Nick)
i would also need a excepts so the bot doesnt kick any staff of my forums and me lol
any help would be greatly appreciated
also when a user isnt found the script already returns - No such user, please try again.