# Help call exports.help = (robot) -> # Shows a list of commands robot.respond /help/i, (res) -> console.log "Entering function help" msg = "Here are the available commands:" msg += "\n*put team_name component_name last_incident record* -- Puts a new component_name with a specified counter and record" # put msg += "\n*report team_name component_name* -- Reports an incident for the component name. Restarts the component's counter to 0." msg += "\n*list all* -- List all the team names, components and counters. " msg += "\n*list record* -- Lists the lowest DSLI and highest record for all teams." msg += "\n*list team team_name* -- Lists the lowest DSLI and highest record for specified team_name." msg += "\n*remove team_name component_name* -- Removes the specified component_name and all of the counter" console.log "Exiting function help" res.send "#{msg}"