Then the bot should check the site and get the user's join date. In the source code for the page that the query is set to, the join date appears like this:
Code: Select all
<div style="padding:3px">
Join Date: <strong>09-30-2005</strong>
</div>
So..this is what I came up with. It doesn't work at all. Perhaps you guys can tell me where I went wrong?
This script is eventually going to be expanded upon to get the users post count, posts per day, birthday, ect...
Code: Select all
bind pub - !joined joined
proc joined {nick host handle chan text} {
set query "http://forums.shooshtime.com/member.php?username=$text"
regexp {Join Date: <strong>(.*?)</strong>} $data - join
putserv "PRIVMSG $chan :$text joined on $join"
}
Thanks in advance!
It has come to my attention that the bot must log-in in order to be able to see the info it needs. So that is yet another dilemma I have to overcome.