I'm fairly new to the twisted event driven programming in Python. I've made a basic bot with some fun functions and now I would like to expand by sending back colored text if a certain event triggers. I understand that some sort of encoding(?) has to take place, but other than that I have no clue where to begin.
How can I encode a string so that it appears as a colored message in most popular IRC clients such as irssi or mIRC?