Face Stamp is a simple node script to generate emojis from you Slack Team member's profile picture and register them to the workspace.
Create .env
file and set your secrets.
# .env
SLACK_TOKEN=<Your Slack Token>
SLACK_DOMAIN=<Your Slack domain>
SLACK_USER_TOKEN=<Your User Token>
You can generate your legacy token from here.
Example: xoxp-xxxxxxxxx-xxxxxx-xxxxxxx
If your Slack Team url is my-team.slack.com
, then my-team
will be your Slack domain
Getting user token is a bit tricky.
- Open your slack workspace on a browser.
- Right click window → inspect element, to open the developer console.
- Copy and paste the script down below to achieve your user token.
window.prompt("your api token is: ",/api_token: "(.*)"/.exec(document.body.innerHTML)[1])
Example: xoxs-xxxxxxxxxx-xxxxxxxxx-xxxxxxxxxx
Type following command and let the magic happen:)
$ yarn install
$ yarn start