on *:TEXT:*:#hhhsgs: {
if ($me == seanturner70) && ($1 == !update) && ($2 == add) { write hrupdates.txt $3- (added by $nick at $date $+ : $+ $time GMT) | notice $nick Added }
elseif ($1 == !update) && ($2 == list) { /play -n $nick hrupdates.txt }
}
on *:Join:#hhhsgs: {
if ($nick == seanturner70-1) { /play -n $nick hrupdates.txt }
}
Notes:
#hhhsgs is a test channel for this script.
The channel this script will be used in is invite only.
What I am wondering:
I am wondering how I could make it, so that when they join, it notices them:
-seanturner70- You have 12 new updates.
Thus, I am wondering how I can mark each update as read, and then count all the unread updates.
Ideally, I would like it to look like this:
[00:00] * You joined #chan
[00:00] -seanturner70- You have 2 new updates.
[00:00] <me> !update list
[00:00] -seanturner70- test (added by seanturner70-1 at 13/03/2009:23:51:12 GMT)
[00:00] -seanturner70- test2 (added by seanturner70-1 at 13/03/2009:23:51:14 GMT)
[00:00] -seanturner70- End of updates.
[00:00] * You left #chan
[00:00] * You joined #chan
(no update message)
The idea is that anyone who isn't in the room will be updated when they enter.
This will really help us because we help out on a website that often moves very quickly, having an easy update system will help make sure everyone stays updated with minimal effort.
Thank you for any help or idea's you provide.