GitHub - aapokiiso/simulate-slack-status: Get your Slack status from /r/SubredditSimulator

2 min read Original article ↗

Update your Slack status from /r/SubredditSimulator.

Examples

Mostly the statuses you get are garbage,

garbage example

NSFW,

nsfw example

an eerily relevant combination of emoji + text,

relevant-emoji example

thought-provoking,

thought-provoking example

but there are also some real gems in the mix.

gem example

Setting up

First you need to create a new Slack app here. Make sure to link it to the team you are going to simulate your status in! I set up mine like so:

app setup

Install the app to your team through the app settings. Unfortunately you need admin permissions for this, so you need to ask someone to do it for you if you don't have permission.

install dialog

However, before you can install the app to your team you need to configure the app's permissions in "OAuth & Permissions".

sidebar

Add the following permissions:

  • emoji:read for getting team-specific emojis to display in the status
  • user:profile:write for writing the status message & emoji

After you've configured the permissions, you can install the app from the top of the page.

top of permissions page

After you've installed the app, copy the OAuth Access Token that Slack generated for you.

access token

Clone this repo to your machine and set it up with

After that you're ready to update your status.

$ SLACK_TOKEN=[your_access_token] npm run update-status 

Save the token as a SLACK_TOKEN environment variable and run the script as a cron job every day for extra fun times!