Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arronhunt/slack-status
Use IFTTT to update your Slack status
https://github.com/arronhunt/slack-status
express ifttt slack
Last synced: 22 days ago
JSON representation
Use IFTTT to update your Slack status
- Host: GitHub
- URL: https://github.com/arronhunt/slack-status
- Owner: arronhunt
- Created: 2017-04-17T18:59:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T00:45:43.000Z (almost 2 years ago)
- Last Synced: 2023-02-27T04:26:21.615Z (over 1 year ago)
- Topics: express, ifttt, slack
- Language: JavaScript
- Homepage:
- Size: 317 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# About
This is a simple express web server that allows you to interface with the Slack status API from IFTTT. The reason that you need this service is because IFTTT does not play well with url encoded JSON in POST requests. Hopefully Slack will make this repo obsolete by publishing their own IFTTT integration.## Step 1. Get a Slack token
1. Create a new slack app https://api.slack.com/apps
2. In your app settings, navigate to Enable OAuth & Permissions
3. Under "Permission Scopes", add the Modify users' profile scope `user.profile:write` and save changes
4. Scroll to the top and click "Install App to Team".
5. In the dialog, click "Authorize"
6. Copy your OAuth Access Token and use it for the next step.## Step 2. Install
SSH into your remote server. In terminal, run the following commands```
$ git clone https://github.com/arronhunt/slack-status.git
$ cd slack-status/
$ npm install
$ npm start
```## Step 3. Update status
To update your status, make a POST request to the server with the following raw body
```
{
"status_text": "Getting coffee",
"status_emoji": ":coffee:",
"token": "YOUR_TOKEN_HERE"
}
```## Step 4. Use with IFTTT
1. Create a new applet https://ifttt.com/create
2. Select a service as your "if" trigger.
3. For the "then" action, search for "Maker Webhook" and click "Make a web request".
4. Enter the URL of your server. `http://myserver.com:3000/status/`.
5. Change the method to `POST`.
6. Change content type to `application/json`.
7. In the body, paste the JSON from step 3.
8. Click "Create action".