this script when you join gives the time of join (by timezone of mIRC with the bot running) visitor count (on joinn) when kicked it adds the kick say !listkicks and or !listbans to view the number of kicks/bans for the chan, in the code. just replace the with a chan (eg #mIRC) say !time for the time
;_____________________________________________________
; Time/Date/Visitor/kick/ban Count
;_____________________________________________________
on *:join:#<enter your chan here>: { inc %vstr 1 | notice $nick Welcome to $chan you (we have been visited %vstr times) | notice nick you have joined at the time $asctime }
on *:kick:#<enter your chan here>: { inc %kick 1 }
on *:text:!listkicks*:#<enter your chan here>: {
if ($nick isop #) { notice $nick current number of kicks for $chan is %kick }
if ($nick ishop #) { notice $nick current nunber of kicks for $chan is %kick }
if ($nick isreg #) { notice $nick only operators can use this command repeat attempts at controlling me will result in a ban }
}
on *:ban:#<enter your chan here>: { inc %ban 1 }
on *:text:!listbans*:#<enter your chan here>: {
if ($nick isop #) { notice $nick current bans for $chan is %ban }
if ($nick ishop #) { notice $nick current bans for $chan is %ban }
if ($nick isreg #) { notice $nick only operators can use this command repeat attempts at controlling me will result in a ban }
}
on *:text:!time:#: { notice $nick the time is $asctime }
This script has the potential to further be improved with counting joins, kicks and bans from individuals, other than counting the total kicks and bans from a channel. Using hash tables is a good idea to set about such script. A delete feature would be nicer to remove the nick of those individuals if you decided to reset. Anyway, it's just a matter of my opinion.
on *:join:#: { inc %vstr 1 | notice $nick Welcome to $chan you (we have been visited %vstr times) | notice nick you have joined at the time $asctime }
you dont need two notices there, you can just make it { inc %vstr | notice $nick Welcome to $chan, we've been visited %vstr times, you joined at $asctime }
Also, why is there a "you" before the parens?
Otherwise I like it :3