Skip to content

Code-Hex/go-emojipacks

Repository files navigation

emojipacks

CircleCI

CLI to bulk upload emojis to your Slack!

Install

binary

You can get binary from releases

go get

$ go get github.com/Code-Hex/go-emojipacks/cmd/emojipacks

Usage

There is only one command:

$ emojipacks

It'll ask you a few questions:

Slack subdomain: helloworld
Email address login: [email protected]
Password: *********
2FA Code: 123456  #  if 2FA is enabled
Path or URL of Emoji yaml file: ./packs/futurama.yaml

Almost this command usage the same as https://github.com/lambtron/emojipacks

Optionally Pass Command Line Parameters

This will allow for easier batch uploading of multiple yaml files

$ emojipacks -s <subdomain> -e <email> -p <password> -y <yaml_file>

Emoji Yaml File

Also note that the yaml file must be indented properly and formatted as such:

title: food
emojis:
  - name: apple
    src: http://i.imgur.com/Rw0Vlda.png
  - name: applepie
    src: http://i.imgur.com/g4RU1fM.png

..with the src pointing to an image file. According to Slack:

  • Square images work best
  • Image can't be larger than 128px in width or height
  • Image must be smaller than 64K in file size

Emoji Aliases

It hasn't supported yet.

Emoji packs

See here