An open API service indexing awesome lists of open source software.

https://github.com/rendom/ircformat

Colorize irc messages.
https://github.com/rendom/ircformat

Last synced: 7 months ago
JSON representation

Colorize irc messages.

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/rendom/ircFormat.svg?branch=master)](https://travis-ci.org/rendom/ircFormat)

# ircFormat
Library to format irc messages

https://godoc.org/github.com/rendom/ircFormat

####Example usage:####
```
// Bold text with red foreground
i.Privmsg(CHAN, ircFormat.New("Test").SetBold().SetFg(ircFormat.Red));

// Bold text
i.Privmsg(CHAN, ircFormat.Bold("Test!"));

// Italic text
i.Privmsg(CHAN, ircFormat.Italic("Test!"));

// Underline text
i.Privmsg(CHAN, ircFormat.Underline("Test!"));

// Red text
i.Privmsg(CHAN, ircFormat.Colorize("Test!", ircFormat.Red, ircFormat.None));

// Red text with green background
i.Privmsg(CHAN, ircFormat.Colorize("Test!", ircFormat.Red, ircFormat.Green));
```