Well We all know what a seen system is now dont we...so just load it...let the bot see a couple of people and so on and do the seen thingy with !seen EGSAMPEL : !seen SL
; / \ | |
; ||| | |
; \\ | |
; ||| | |__
; \ / |____|
;snippit : -.-Seen V1.0-.-
;server : irc.4everlost.co.za
;room : #slc
;webpage : http://slchat.50megs.com/Home.htm
;Date codded : 24/07/2004
on 1:load: {
echo -a 12,0-.-Seen V1.0-.- Succesfully loaded Please READ trough the Readmy before use
}
on *:text:!seen*:#: {
if ($2 == $null) { msg $chan 10,0Mmm...I allmost fell for that 1 | halt }
if ($2 == $me) { msg $chan 10,0What are you blind $nick $+ ? I'm right here | halt }
if ($2 == $nick) { msg $chan 7,0You must be retarted $nick | halt }
if ($2 ison #) { msg $chan 12,0Put on you're glasses and check again... $+ $2 is right here | halt }
else {
set %sl.sa $readini($scriptdirSLseen.ini, $2, Time)
set %sl.sb $ctime($time(mmmm d yyyy HH:nn:ss))
set %sl.at $calc(%sl.sb - %sl.sa)
if (%sl.sa != $null) { msg $chan 3,0 $+ $nick Last time I saw $2 $+ , $2 was12 $readini($scriptdirSLseen.ini, $2, Message) 5,0 $duration(%sl.at) ago }
if (%sl.sa == $null) { msg $chan 4,0Sorry $nick I have not seen $2 yet }
unset %sl.sa %sl.sb %sl.at
}
}
on 1:text:*:#: {
writeini SLseen.ini $nick Message Saying $1- 10in $chan
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
on 1:action:*:#: {
writeini SLseen.ini $nick Message Doing an action $nick $1- 10in $chan
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
on 1:join:#: {
writeini SLseen.ini $nick Message Joining $chan
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
on 1:part:#: {
writeini SLseen.ini $nick Message Leaving $chan
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
on 1:quit: {
writeini SLseen.ini $nick Message Quiting IRC with this message $1-
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
on 1:nick: {
writeini SLseen.ini $nick Message Changing nick's from $nick to $newnick
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
on 1:op:#: {
writeini SLseen.ini $nick Message Being Opped by $nick
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
on 1:deop:#: {
writeini SLseen.ini $nick Message Being Deopped by $nick
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
on 1:voice:#: {
writeini SLseen.ini $nick Message Being Voiced by $nick
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
on 1:topic:#: {
writeini SLseen.ini $nick Message Changing $chan $+ 's topic to $1-
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
on 1:ban:#: {
writeini SLseen.ini $nick Message Banning $bnick from $chan
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
on 1:kick:#: {
writeini SLseen.ini $nick Message kicking $knick from $chan for this reason10 $1-
set %sl.sa $ctime($time(mmmm d yyyy HH:nn:ss))
writeini SLseen.ini $nick Time %sl.sa
unset %sl.sa
}
:) not once they part the channel.. it will be replaced with \'Leaving $chan\' or \'Quitting IRC with this message\' it doesn\'t log under your name if you were the one being banned or kicked.. You\'ve just got this code in there really doing nothing.. but if thats what you want.. more power to you.. just trying to give you a heads up on it.. could be a good script made even better.
I know, But lets say for instance you are gone for3 hours allready...and someone bans you, it will write that u have been banned by??? so many minutes ago, it does not mean you had any action in this, so if you on idle and being banned, kicked etc. it will log even if you did not do anything in this actions
yep checked it, I noticed as i said, doesn\'t show following messages, opping, voicing, banning etc.. only your basic checks for yourself, the person themselves and on channel.. joins, parts, nick and quits.. :) just reqork the \'if ($2 ison #) {\' part in the \'on text\' event to fix this. and it will be a good script snippet :)
just looking at your script, it appears everything other than the join, part, nick and quit is irrelevant as you have \'if ($2 ison #) {\' in the \'on text\' event. It will override any messages where the bot and user are on the same channel. When the user parts or quits those other messages are replaced. just an observation, but could attapt this to a logging script.