Skip to contents

Function used to send information on something to a mattermost server.

Usage

alert_mattermost(msg, server, hook, user = "floodam.data", alert = TRUE)

Arguments

msg

character, the message to be sent.

server

character, the address of the mattermost server

hook

character, the hook to send message.

user

character, the username to be used.

alert

logical, should the message be sent.

Value

nothing if alert is TRUE, the character command if not.

Examples


if (FALSE) {
alert_mattermost("Sorry for disturbance, this is a test.")
}