notifico icon indicating copy to clipboard operation
notifico copied to clipboard

New Formatting Options

Open a-teammate opened this issue 11 years ago • 3 comments

Additionally to #94 i would love to see some more formatting options for the irc-bot in general:

  • <Not-ad92>[sauerbraten-fork] Travis CI - build #181 passed. (fohlen/nightly @ c170880) http://git.io/-ghzoQ
  • <Not-ad92>[sauerbraten-fork] Details: https://travis-ci.org/sauerbraten-fork/sauerbraten-fork/builds/35527292
  • <Not-ad92>[sauerbraten-fork] Success. The Travis CI build passed - https://travis-ci.org/sauerbraten-fork/sauerbraten-fork/builds/35527292

3 lines for the simple message "Success" can be optimized i think. In my opinion one line like:

  • <Not-ad92>[project] The Travis build 'succeded' (in green) for (fohlen/nightly) - https://travis-ci.org/sauerbraten-fork/sauerbraten-fork/builds/35527292

is totally enough.

Maybe even without the details-link (because you can find it quite easily anyways) or with short-urls so

"https://travis-ci.org/sauerbraten-fork/sauerbraten-fork/builds/35527292" becomes something like "https://travis-ci.org/sMlthrG/"

a-teammate avatar Sep 17 '14 16:09 a-teammate

I talked to @TkTech a while ago about implementing a custom template system for messages, I think this would satisfy all needs for custom formatting. But I am not sure if the idea is still relevant or is already thrown away.

Dav1dde avatar Sep 20 '14 15:09 Dav1dde

It is still on the list, but a templating system is hard to sandbox without neutering it. Jinja2 provides a sandbox, but is too easy to lock up (infinite for loop, infinitely growing templates, etc...)

TkTech avatar Sep 20 '14 16:09 TkTech

Yay Sauerbraten :)

Anyway, I came here looking for almost this exact thing

Gemrb are using an irc to discord bridge to keep messages flowing between them and currently the github notifications are drowning out the chat because discord makes a preview link for every url that's posted.

In discord it can be prevented by adding <> brackets around the url, but it would take having this sort of optional template formatting to make it happen.

.... so.... uhh.... Is this still on the list? :)

chilvence avatar Jun 23 '20 08:06 chilvence