Closed FingerlessGlov3s closed 5 years ago
It is not clear why one feed would need to have its posts formatted inconsistently as "{title} -> {url}"
. Please provide a reason for this per-feed inconsistency. I basically need more motivation to implement any feature request. I need an understanding of how it would be useful.
Well you probably wouldn't but you might change the colours per RSS feed. If you wanted to have a colour system perhaps. Where one rss type is red, another blue etc. or one RSS has *** in to mark it clearer as maybe an more important feed.
Idea being you can create your custom message, without yourself needing to hard code it in. So the owner of the bot can customise how the message is formatted without you having to code it in.
Few user customisation examples below of what people could put.
default (if message-format not set, which is how it in currently): "[{feedname}] {title} -> {url}"
Example1: "{feedname} {title} -> {url}"
Example2: "{feedname} {title} -> {url}"
Example2: "**** [{feedname}] {title} -> {url}"
Example3: "{title} -> {url}"
Example4: "{title} ({url})"
Example5: "[^orange^{feedname}^/orange^] {title} -> {url}"
Example6: "[^orange^^bold^{feedname}^/bold^/orange^] {title} ->
So by letting the user type in their own custom formatted message then they can do any number of customisations.
My colour tags are examples, I doubt that's how you do colours in miniirc
I would include colour example but I'm not sure how colours are defined in miniirc
Per our discussion, the high-level consensus thus far is to add a config option to allow customizing a feed name's foreground color.
Sounds good to me :-)
0.3.16 now supports fg color, bg color, and bold formatting for the feed name. The readme has an example.
It would be cool if you could format the message it sends per feed.
There would be an optional "message-format" variable you can set. Which allows you to customize the message it sends. This can also be used to add colour support etc. Need to see how colours are done in miniirc for that part I'm unsure on.
Config would look something like this