ayust / kitnirc

Python IRC bot framework.
MIT License
11 stars 7 forks source link

IRC styling/colors. #14

Closed flexd closed 7 years ago

flexd commented 10 years ago

I found myself wanting to be able to send colored/styled messages, and I came across this that already has all the codes defined.

https://github.com/greerrrr/nicedice/blob/master/nicedice/ircformat.py

Currently I have just put that file in my modules dir, so I can do things like

self.controller.client.msg(recipient, ircformat.style("Hello world", "bold"))

Perhaps we can grab that and put it into kitnirc core? It's common to want to be able to do things like that.

ayust commented 10 years ago

A styling helper would be a good idea.

flexd commented 10 years ago

I did not see a license in that repo, but perhaps it's general enough that it does not matter :-)?

ayust commented 10 years ago

I think I'm going to rework it anyway, so it'll be more of a reference.