emojipacks

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 14 Imported by: 0

README

emojipacks

CircleCI

CLI to bulk upload emojis to your Slack!

Install

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: code-hex@codehex.dev
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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) int

Types

type EmojiPacks

type EmojiPacks struct {
	Title  string
	Emojis []struct {
		Name string
		Src  string
	}
}

type Response

type Response struct {
	OK       bool   `json:"ok"`
	Err      string `json:"error,omitempty"`
	Needed   string `json:"needed,omitempty"`
	Provided string `json:"provided,omitempty"`
}

func (*Response) Error

func (r *Response) Error() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL