Please follow the tutorial for this repo at https://api.slack.com/tutorials/tracks/create-incident.
This sample project shows how to create a function to handle incidents.
Create a new project using this as repo as a template.
slack create -t slackapi/deno-incident-management
slack run
slack deploy
slack deno test