For that script to work the person/bot that is running the script must be in the channel and have full ops status (ie: the @ symbol must be in front of the nick)