about on join event u can use $replace and $level
on @!*:JOIN:#channelhere:{
mode # + $+ $replace($level($nick),500,q,200,a,150,a,100,o,50,h,10,v) $nick
.msg # $nick has an access level with this bot:04 $replace($level($nick),500,owner,200,protector+trusted,150,protector,100,operator,50,halfop,10,voice) $+ .
}
u can do the same for on text event