smashwilson / slack-emojinator

Bulk upload emoji into Slack
MIT License
328 stars 52 forks source link

improve ux #11

Closed stavxyz closed 7 years ago

stavxyz commented 7 years ago

:cake: no breaking changes

Fixes #10

$ wget http://cultofthepartyparrot.com/parrots.zip && unzip parrots.zip
$ ./upload.py -t mightydux parrots/*
Please enter the "emoji" cookie: <ctrl-v>
# win
Uploaded 55 emojis. (0 already existed)

--help

$ ./upload.py -h
usage: upload.py [-h] [--team-name TEAM_NAME] [--cookie COOKIE]
                 slackmoji_files [slackmoji_files ...]

Bulk upload emoji to slack

positional arguments:
  slackmoji_files       Paths to slackmoji, e.g. if you unzipped
                        http://cultofthepartyparrot.com/parrots.zip in your
                        home dir, then use ~/parrots/*

optional arguments:
  -h, --help            show this help message and exit
  --team-name TEAM_NAME, -t TEAM_NAME
                        Defaults to the $SLACK_TEAM environment variable.
  --cookie COOKIE, -c COOKIE
                        Defaults to the $SLACK_COOKIE environment variable.
smashwilson commented 7 years ago

Hah, nice. :sparkles: