This script is designed to be run on a bot. Either that or edit the deop feature to halt if nick is you. That is going to be your easiest option.