Simple Greets -- When you Join, Quit, and Part
You can change the "Hey everyone, how is everyone doing today" to whatever fits your needs.
Same with "Bye people i'm out"
Or "The part is a lie"
Change the "channel name is here" to your channel you want it to be.
And this is for certain channels so it doesn't greet every channel you join.
on !*:join:#:{
if ($chan == #channel name is here)
.msg $chan Hey everyone, how is everyone doing today?
}
on !*:quit:#:{
if ($chan == #channel name is here)
.msg $chan Bye people i'm out
}
on !*:part:#:{
if ($chan == #channel name is here)
.msg $chan The part is a lie!
}
Very well, napa. I'm just gonna plug it into my take on it:
on *:quit: greet
on !*:part:#: greet
on !*:join:#: greet
alias -l greet {
if (!$($+(%,f,$wildsite),2)) {
inc -u5 $+(%,f,$wildsite)
var %p = msg # The part is a lie!
var %t = $!istok(%c,$iif($event == quit,$comchan($nick,%q),#),124)
var %c = #chan1|#chan2|#chan3|#chan4|#chan5|#chan6|#chan7|#chan8
var %j = msg # Hey $nick $+ , how are you doing today?
goto $event | :part | if ([ [ %t ] ]) %p | halt | :join | if ([ [ %t ] ]) %j | halt |
:quit | var %q = $comchan($nick,0) | while (%q) { | if ([ [ %t ] ]) {
var %qm = msg $comchan($nick,%q)
if ($nick == $me) { %qm Bye people i'm out }
else { %qm Bye $nick and take care! }
}
dec %q
}
}
}
only ones you dont want to trigger ur self but not on text events as you can not trigger them ur self
here is a small example of using the $event
this is only an example:
on !*:join:#:gr #
on !*:part:#:gr #
alias -l gr {
if (!%f && $1 = #chan_name_here) { inc -u5 %f
msg # $iif($event = join,Hey everyone $+ $chr(44) how is everyone doing today?,The part is a lie!)
}
}