This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Setup instructions
Anders Fjeldstad edited this page Feb 18, 2015
·
6 revisions
These are some brief instructions on how to set up your own instance of SlackCommander to use with your Slack team.
- Get a Microsoft Azure account. The current version of SlackCommander
uses Azure Storage for persisting todo items, so if you don't want to
implement your own storage provider this is a requirement. (If you
do want to roll your own, have a look at
ITodoService
.) - Create an Azure Storage account from the Azure portal. Call it whatever your like. Note the primary access key under Keys.
- Create an Azure Website. The free hosting plan is fine. Call it
whatever you like. Note the website url under Properties (I recommend
using https). It should look like
https://[yourslackcommander].azurewebsites.net
if you're using the free plan. - Open the Site settings for your Azure Website and scroll down to App settings.
Add the following setting:
-
todo:azureStorageConnectionString
:DefaultEndpointsProtocol=https;AccountName=[your Azure Storage account name];AccountKey=[your Azure Storage primary access key]
-
- Go to the Service Integrations page for your Slack team.
- Add an Incoming Webhook integration.
- Choose @slackbot as the channel.
- Save the integration.
- Copy the token displayed in the right column.
- Open the Site settings for your Azure Website and scroll down to App settings.
Add the following settings:
-
slackMessage:responseToken
:[your token]
-
slackMessage:responseBaseUrl
:https://[your-team-subdomain].slack.com
-
- Add a Slash Commands integration.
- Choose /todo as command name.
- Save the integration.
- Under Integration Settings:
- Set URL to
https://[yourslackcommander].azurewebsites.net/todo
- Set Method to
POST
.
- Set URL to
- Save the integration settings.
- Copy the token displayed in the right column.
- Open the Site settings for your Azure Website and scroll down to App Settings.
Add the following setting:
-
todo:slackSlashCommandToken
:[your token]
-
There are several options for deploying the SlackCommander app to your Azure Website, all described in detail in the Azure documentation. If you are familiar with Git and want to customize/extend the SlackCommander source code, Git deployment is probably the most convenient option. Otherwise, just go with publishing from VisualStudio (WebDeploy) or S/FTP.