- Make the "New commit" text green
This commit is contained in:
Tristan B. Velloza Kildaire 2023-07-07 13:12:19 +02:00
parent acad105e21
commit 6d1ef81793
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ void commitHandler(HTTPServerRequest request, HTTPServerResponse response)
/* Extract JUST the repository's name */
toChannel = associations[json["repository"]["name"].str()];
string ircMessage = bold("["~repositoryName~"]")~" New commit "~commitMessage~" ("~commitID~") by "~italics(authorName)~" ("~authorEmail~") ["~underline(commitURL)~"]";
string ircMessage = bold("["~repositoryName~"]")~setForeground(SimpleColor.GREEN)~" New commit "~resetForegroundBackground()~commitMessage~" ("~commitID~") by "~italics(authorName)~" ("~authorEmail~") ["~underline(commitURL)~"]";
ircBot.channelMessage(ircMessage, toChannel); //TODO: Add IRC error handling
/* Send message to NTFY server */