Closed flexd closed 7 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.
A styling helper would be a good idea.
I did not see a license in that repo, but perhaps it's general enough that it does not matter :-)?
I think I'm going to rework it anyway, so it'll be more of a reference.
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
Perhaps we can grab that and put it into kitnirc core? It's common to want to be able to do things like that.