I've modified the script according to KillerX's suggestion to include an alias that you can trigger on the client running the code using:
/shorten <Link> <Suffix>
to send out a shortened URL in the channel. This is an extra option and won't interfere with the default text event trigger.