An open API service indexing awesome lists of open source software.

https://github.com/codebytere/emoji-mashup-convert

Convert images from tweets into Slack-worthy emojis.
https://github.com/codebytere/emoji-mashup-convert

Last synced: 9 months ago
JSON representation

Convert images from tweets into Slack-worthy emojis.

Awesome Lists containing this project

README

          

# emoji-mashup-convert

This cli tool converts media from tweets into emojis and then optionally uploads them to the Slack workspace of your choice.

## Usage

```sh
$ emoji-mashup-convert
? Enter tweet url: # https://twitter.com/EmojiMashupBot/status/1172404610159411200
? Upload emoji to Slack workspace? # Yes
? Enter name of new emoji: # sad-expressionless
? Enter Slack user token # xoxs-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# On success, outputs:
✓ See new image at: /Users/codebytere/Desktop/1172616005740388354.png
✓ New emoji successfully uploaded to Electron HQ.
```

After logging into `https://.slack.com/customize/emoji`, you should then see:

Screen Shot 2019-09-13 at 7 33 04 PM

By default, the converted photo will go to `/path/to/Desktop` but if you'd like it to go elsewhere, you can set `process.env.OUT_DEST` to specify a custom destination.

You can set `process.env.SLACK_TOKEN` to avoid pasting in your token multiple times. You would still type `Yes` for "Upload emoji to Slack workspace?", but if it detects this env var it won't ask you for a token.