Skip to content

Latest commit

 

History

History
98 lines (78 loc) · 6.1 KB

README.md

File metadata and controls

98 lines (78 loc) · 6.1 KB

rocketchat-emoji-upload

CLI to bulk upload emojis to Rocketchat

Install

All required pip packages are in the requirements.txt file, install like so:

pip install -r requirements.txt

Usage

In order to work you will need access to your rockechat mongo instance

$ python emoji-upload.py
URL for YAML file?https://raw.githubusercontent.com/lambtron/emojipacks/master/packs/futurama.yaml
MongoDB URI for your rocketchat deployment?mongo://<mongoserver>

Note that the emoji pack to upload must be a URL, like http://www.emojipacks.com/packs/food.yaml.

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.

Emoji packs

Emoji packs from slackmojis.com

Credits

This is based on lambtron's emojipacks