I have figured it out mostly, but I'm only wondering if there's a command that makes my script NOT reply when person x is in the channel.

Person x runs the script as well, and it should only reply when person x is not in the channel because there's no use for people to receive 2 of the same replies.

Thanks in advance.