I just realised to mention, if you are testing this for yourself you will need to create another connection in the channel. this is because a script will not react to an on text event from the local nick, you need to use on input for your own nick or create a second nick in channel(a bot)

btk


billythekid