I made this script with some friends well over a decade ago. Intended to be used with the XiRCON client.
It has lots of features (auto-away, shit list, etc.) and aliases, mostly for IRC ops. I won't list all the features, but some of them may get you banned.
It's also very out of date.