Simple Join Message

By F R E E Z E on Dec 18, 2007

Very simple join message/counter.

Type /on #Channel to turn the message on for a channel.
Type /off #Channel to turn the message off for a channel.

If you want to edit the greet message, feel free.

alias on {
  if ($1 == $null) { echo -a Invalid Syntax! /on [CHANNEL] | halt }
  if ($left($1,1) == #) {
    set %grt [ $+ [ $1 ] ] on
    echo -a Greet message for $1 is now on!
  }
}
alias off {
  if ($1 == $null) { echo -a Invalid Syntax! /off [CHANNEL] | halt }
  if (%grt [ $+ [ $1 ] ] == on) { unset %grt [ $+ [ $1 ] ] }
  else { echo -a Greet message for $1 is already off!
  }
}
on *:JOIN:#: {
    if (%grt [ $+ [ $chan ] ] == on) { inc %grtj [ $+ [ $chan ] ] | notice $nick Hello and welcome to $chan! I've seen %grtj [ $+ [ $chan ] ] people join here! }
  }
}

Comments

Sign in to comment.
nachodude2   -  Dec 18, 2007

This part won\'t work correctly - notice $nick Hello and welcome to $chan! I\'ve seen %grtj [ $+ [ $chan ] ] people join here! }

It should be -

notice $nick Hello and welcome to $chan $+ ! I\'ve seen %grtj [ $+ [ $chan ] ] people join here! }

 Respond  
Zsadist   -  Dec 18, 2007

Um now you need to take the very last one out. That is what I meant by move it

 Respond  
F R E E Z E   -  Dec 18, 2007

Sorry didn\'t notice. I made it fast and rushed it.

Fixed.

 Respond  
Zsadist   -  Dec 18, 2007

Uh dude. You have the very last } in the wrong place e.e Move it up to the middle at the end of alias off e,e;

 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.