Method: Codebot::Formatters.format_color

Defined in:
lib/codebot/formatters.rb

.format_color(event, payload, integration) ⇒ Array<String>

Formats colored IRC messages. This method should not be called directly from outside this module.

Parameters:

  • the webhook event

  • the JSON payload object

Returns:

  • the formatted messages



105
106
107
# File 'lib/codebot/formatters.rb', line 105

def self.format_color(event, payload, integration) # rubocop:disable Metrics/LineLength
  create_formatter(event, payload, integration).format
end