It will join your channel and message it with the Nick who invited the Bot.Please comment on this script.
on *:INVITE:#: { join $chan |
.msg $chan 0,105Hello Im now assigned to $chan . I was invited by $nick $+ .I hope you will like me :p.
}
This is a very basic one, should cover what you need tho :) Unforunatly you cant check if a nick isop without joining the channel. The reason the check is on a timer is because the IAL isnt updated until the join event ends, so if you check if $nick isop before the join event has ended it wont see them as an op.
on *:INVITE:#: {
if (!$hget(spamcheck,$chan)) {
hadd -mz spamcheck $chan 60
hadd -mu5 invite $chan $nick
join $chan
}
else {
.notice $nick I was just invited to $chan $+ . Please wait $duration($hget(spamcheck,$chan)) before inviting me again
}
}
on *:JOIN:#: {
if ($nick == $me) && ($hget(invite,$chan)) {
$+(.timer_checkop_,$chan) 1 1 check_op $hget(invite,$chan) $chan
}
}
alias check_op {
if ($1 isop $2) || ($1 ishop $2) {
msg $2 Hi there im $me $+ . I was invited by $1 $+ .
}
else {
part $2 I was invited by a non-op. Please try again
}
}