This app was created with SST.
This app is deployed to AWS using SST.
- You need AWS account with
aws
CLI command installed. To installaws
CLI command check out this guide. - It is good to create sandbox Slack Workspace so that you can safely install Slack app.
- Clone this repo and install dependencies
gh repo clone preshetin/drebedengi-slack
cd drebedengi-slack
yarn
- Copy environmental variables
cp env.example .env
- Start local development
yarn start
If everything goes fine, in the end you will see ApiEndpoint
that looks like https://xxx.execute-api.us-east-1.amazonaws.com
. Note it since you will need when configuring your Slack app (see next step).
- Now go to https://api.slack.com/apps and create your Slack app. Choose the workspace you are installing the app. Insert this this manifest template file. In that template, make sure to enter
ApiEndpoint
value in several places. - Once your app Slack app is ready, grab its keys for the
.env
file. ForSLACK_SIGNING_SECRET
, navigate to its Basic Information page, App Credentials part. ForSLACK_BOT_TOKEN
, go to Install App page and install the app into your workspace. Once you do that, you will be able to get the value for this env variable. ForNOTIFICATION_CHANNEL_ID
, get channel ID from Slack workspace. If you cannot find it these links can be helpful. - Once your your
.env
file is updated,yarn start
it once again. - Now go to your Slack workspace, type
/drebedengi
and hit enter. - To enabale bot messages to the notification channel you need to add your app user to it. You can do it by running
/invite @yourBot
slash command.
Use /drebedengi
slash command like this:
/drebedengi remind @some_user