Quack v0.1.1 Quack.Formatter View Source

Module responsible for formatting and composing messages to be sent to slack

Link to this section Summary

Functions

Function to compose a new message based on event data

Function to format a timestamp as a string

Function to format text as bold

Function to format text as code

Function to format text as italics

Function to format text as preformatted

Function to format text as a quote

Link to this section Functions

Function to compose a new message based on event data

Function to format a timestamp as a string

iex>Quack.Formatter.parse_ts({{2018, 11, 5}, {15, 4, 46, 613}}) “2018-11-05 15:04:46.613”

Function to format text as bold

iex> Quack.Formatter.to_bold(“example”) “example

Function to format text as code

iex> Quack.Formatter.to_code(“example”) “example

Function to format text as italics

iex> Quack.Formatter.toitalics(“example”) “_example

Function to format text as preformatted

iex> Quack.Formatter.to_preformatted(“example”) “example

Function to format text as a quote

iex> Quack.Formatter.to_quote(“example”) “>example”