Clone the repo:
git clone git@github.com:jeremy-green/shush.bot.git
Change directories into the repo:
cd shush.bot
Install the Node dependencies:
npm install
Run it locally:
node index.js
Test the local setup with Curl:
curl \
-H "Content-Type: application/x-www-form-urlencoded" \
-X POST \
-d "token=<TOKEN>&team_id=<TEAM_ID>&team_domain=<TEAM_DOMAIN>&channel_id=<CHANNEL_ID>&channel_name=directmessage&user_name=<USER_NAME>&user_id=<USER_ID>&command=/shush&text=@<USER_NAME>&response_url=<RESPONSE_URL>'" \
http://localhost:3000/shushIn the browser, navigate to https://your-slack-group.slack.com/apps/manage/custom-integrations. Click on "Slash Commands".

Click on "Add Configuration".

Name your command and click "Add Slash Command Integration".

Under "Integration Settings", add the path to your Express server. Give the Bot a name. And upload an image (Shush emoji is provided).

Fill in other fields if desired and click "Save Integration"

In the browser, navigate to https://your-slack-group.slack.com/apps/manage/custom-integrations. Click on "Incoming WebHooks".

Click on "Add Configuration".

In "Integration Settings", under "Post to Channel", select "@slackbot. Copy the "Webhook URL".

Paste the "Webhook URL" in the shush.bot.js file under the "routes" directory and start the Express server.
Assuming everything is configured correctly, there are no Node errors and I've documented everything properly, then you should be able to anonymously shush loud people in the office.
Test by /shush @your-slack-username.
