Channel greet - works on times of the day

By Zer0Velocity on Aug 13, 2006

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
}

Comments

Sign in to comment.
Fuzion   -  Jul 23, 2008

i like well done

 Respond  
petrillo2000   -  Aug 29, 2006

how do i load this i have pasted it into my remotes but i cant get it to work and ive changed on :JOIN:#: { to on :JOIN:#all-xdcc: { which is my channel that is right yea?

 Respond  
Zer0Velocity   -  Aug 14, 2006

I have updated it so will only msg the nick not the whole channel. :o)
Also only 2 lines insted of 3.

 Respond  
krimson   -  Aug 14, 2006

o_O

 Respond  
Noutrious   -  Aug 14, 2006

Yes, i would use this for not private nick, but /timer 0 1200 /checkmsg
and then
alias checkmsg {
if ($time == 15.30) {
.msg #chan blabla
halt
}
}

 Respond  
krimson   -  Aug 13, 2006

i find this rather useless. there\'s one big problem with it too.. for each user joining any chan you\'re on, you\'ll output 3 lines. if used in channels with high join/part traffic, then you\'ll sureley flood out

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.