packages/lobsang-formatter-matrix/lib/lobsang-formatter-matrix.js
function lobsangFormatterMatrix (message) {
  if (typeof message !== 'string') {
    return Promise.reject(new Error('Message is not a string'))
  }

  const formattedMessage = {
    body: message,
    msgtype: CONSTANTS.MATRIX_NOTICE_TYPE
  }
  return Promise.resolve(formattedMessage)
}
function lobsangFormatterMatrix (message) {
  if (typeof message !== 'string') {
    return Promise.reject(new Error('Message is not a string'))
  }

  const formattedMessage = {
    body: message,
    msgtype: CONSTANTS.MATRIX_NOTICE_TYPE
  }
  return Promise.resolve(formattedMessage)
}
@module @lobsangnet/lobsang-formatter-matrix
 
Library to wrap a message into an object which can be sent to matrix.

@public
@param {string} message - The message to format.
@returns {Promise<any|Error>}
Promise which resolves to a MatrixMessage.
Or an Error if something went wrong.
@todo Replace any after https://github.com/Kegsay/flow-jsdoc/issues/22