Channel Greet System For A Bot
Platform: mIRC
Published Jun 18, 2011
Updated Jun 18, 2011
Simple Channel greet system for a bot. Add to a new remotes file then just do !setgreet greethere and everytime you enter the channel you set it on it will greet you with your preset greet. You can reset your greet as well with the !resetgreet command. And check it with !checkgreet.
on !*:join:#: {
if ($readini(greet.ini,$chan,$nick)) {
.msg $chan $readini(greet.ini,$chan,$nick)
}
}
on $*:TEXT:/^(!setgreet)/Si:#:{
if ($readini(greet.ini, $chan,$nick)) {
.notice $nick your greet is already set as $readini(greet.ini,$chan ,$nick,4) to change it do !resetgreet first
}
else { writeini greet.ini $chan $nick $2-
}
}
on $*:TEXT:/^(!resetgreet)/Si:#:{
remini greet.ini $chan $nick
}
on $*:TEXT:/^(!checkgreet)/Si:#:{
if (!$readini(greet.ini, $chan,$nick)) {
msg $chan $nick you do not have a greet set up for this channel type !setgreet yourgreet to set a greet
}
else { if ($readini(greet.ini,$chan,$nick)) {
msg $chan $nick your greet is set as $readini(greet.ini,$chan,$nick)
}
}
}