Let me butt in here and say the snippet doesn't work as @Sorasyn and @Stewie1k94 stated. Let's examine why.
Your code:
on *:JOIN:#: {
/set %join.rand $rand(1.3) {
if (%join.rand == 1) /msg $chan welcome on the $chan chat $nick
if (%join.rand == 2) /msg $chan welcome on the $chan chat chanal $nick.
if (%join.rand == 3) /msg $chan welcome $nick, stick to the rules and I will not kick you ;)
}
}
Line 2 is incorrect. Let's start from the first error. You have a period instead of a comma where you use $rand. It should read $rand(1,3) not $rand(1.3). Secondly, this line doesn't require a bracket at the end. There is no statement preceding the bracket, therefore it won't work as-is. Your code should look similar to @Stewie1k94's code in order for it to work properly. >.<
Overall, I don't understand why people still make these types of snippets anymore. No one really wants to be greeted by a bot. It's quite annoying (personally). However, it is a good place to start (I suppose) if you're new to coding mSL. >.<