chacha. Yes, there's no need to check for $1, but I didn't pay much attention to that since I was adding a text event to it so that it will work for ops to command it.
FeelGood, are you opped in channel to command this script? It has to be installed in another client. The client that runs the code needs to have an op status as well.