Time of day greeting (random)

By deon204 on Jun 10, 2007

this is a modified version of Zer0Velocity's greet script

this one you can have a random reply having a
morning.txt looking like this

msg $chan good morning $nick

put in your mirc directory in a folder named greets

on *:JOIN:#: {
  if ($asctime(HH:nn:ss) >= 05:00:00 && $asctime(HH:nn:ss) <= 11:59:59) {
    set %timeofday morning
  }
  if ($asctime(HH:nn:ss) >= 12:00:00 && $asctime(HH:nn:ss) <= 16:59:59) {
    set %timeofday afternoon 
  }
  if ($asctime(HH:nn:ss) >= 17:00:00 && $asctime(HH:nn:ss) <= 23:59:59) {
    set %timeofday evening
  }
  if ($asctime(HH:nn:ss) >= 00:00:00 && $asctime(HH:nn:ss) <= 04:59:59) {
    set %timeofday night
  }
  $read($+($mircdir,greets $+ %timeofday $+ .txt))
  halt
}

Comments

Sign in to comment.
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.