Will auto greet users who join the channel and will determine whether to say good-morning, afternoon, evening or good-night?
This is all done by certain times of the day. :)
on *:JOIN:#: {
if $nick = $me goto 1
if $asctime(HH:nn:ss) >= 05:00:00 && $asctime(HH:nn:ss) <= 11:59:59 goto 2
if $asctime(HH:nn:ss) >= 12:00:00 && $asctime(HH:nn:ss) <= 16:59:59 goto 3
if $asctime(HH:nn:ss) >= 17:00:00 && $asctime(HH:nn:ss) <= 23:59:59 goto 4
if $asctime(HH:nn:ss) >= 00:00:00 && $asctime(HH:nn:ss) <= 04:59:59 goto 5
halt
:1
halt
:2
notice $nick Welcome to $chan - Current Time Is $asctime(HH:nnTT)
notice $nick Good morning $nick - Please enjoy your stay
halt
:3
notice $nick Welcome to $chan - Current Time Is $asctime(HH:nnTT)
notice $nick Good afternoon $nick - Please enjoy your stay
halt
:4
notice $nick Welcome to $chan - Current Time Is $asctime(HH:nnTT)
notice $nick Good evening $nick - Please enjoy your stay
halt
:5
notice $nick Welcome to $chan - Current Time Is $asctime(HH:nnTT)
notice $nick Good night $nick - Please enjoy your stay
halt
}