There's no reason to poll (periodically check) for op status. When your bot gets deopped you can part the channel

Code:
ON me:*:JOIN:#:.timerNOOP $+ # 1 5 part #
ON *:DEOP:#:if ($opnick == $me) .timerNOOP $+ # 1 5 part #
ON *:OP:#:if ($opnick == $me) .timerNOOP $+ # off