on *:text:!invite *:#:{
if ($nick isop #) {
chatbot invite # $2
notice $nick $2 Has Been Invited to #
}
}
if ($nick == isop) wasn't the correct operator. see /help if-then-else for syntax info.
Also, your script is listening for
!invite in both channel and private. should be channel only, I guess.
Remote commands don't have to be preceded by slash.
Finally, no need for
halt as the script already ended.
(edit: is /chatbot an alias which messages your bot, or did you mean /msg chatbot?)