Move trigger functions from irc.py to triggers.py to clean up irc.py a bit