Inviting team member to slack channel. This function helps incident management.
- Slack
- Google Cloud Functions
- type slash command
- create Slack channel
- post task list
- invite team member
https://api.slack.com/slack-apps
- Add team member to Collaborators
channels:write
chat:write:bot
users:read
$git clone [email protected]:ma-bo-do-fu/incident-management.git
$cd incident-management
$npm install
c.f. https://serverless.com/framework/docs/providers/google/guide/credentials/
$cd incident-management
$touch .env
update environment variables like .env.example
.
set channel_name_prefix
,tasks
,members
to config.yml
config.yml
channel_name_prefix: test
tasks:
- task1
- task2
- task3
members:
- user1
- user2
- user3
$npm run deploy
set the Cloud Functions Trriger as Request URL
c.f. https://api.slack.com/slash-commands
type slash command.
example
/incident