Skip to content

Instantly share code, notes, and snippets.

@lefte
Forked from gryte/slack-ifttt-autostatus.md
Created February 3, 2018 04:46
Show Gist options
  • Save lefte/7b3d586dda8c623bcd64548388b52193 to your computer and use it in GitHub Desktop.
Save lefte/7b3d586dda8c623bcd64548388b52193 to your computer and use it in GitHub Desktop.
Slack IFTTT Automatically Update Status

enter an area - arrive at work - in the office

If Location, then Webhooks

webhooks field webhooks value
URL https://slack.com/api/users.profile.set
Method POST
Content Type application/x-www-form-urlencoded
Body authorization=Basic &token=TOKENHERE&profile={"status_text": "in the office","status_emoji":":office:"}

exit an area - leave work - commuting

If Location, then Webhooks

webhooks field webhooks value
URL https://slack.com/api/users.profile.set
Method POST
Content Type application/x-www-form-urlencoded
Body authorization=Basic &token=TOKENHERE&profile={"status_text": "commuting","status_emoji":":car:"}

enter an area - arrive home - at home

If Location, then Webhooks

webhooks field webhooks value
URL https://slack.com/api/users.profile.set
Method POST
Content Type application/x-www-form-urlencoded
Body authorization=Basic &token=TOKENHERE&profile={"status_text": "at home","status_emoji":":house:"}

exit an area - leave home - commuting

If Location, then Webhooks

webhooks field webhooks value
URL https://slack.com/api/users.profile.set
Method POST
Content Type application/x-www-form-urlencoded
Body authorization=Basic &token=TOKENHERE&profile={"status_text": "commuting","status_emoji":":car:"}

references

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment