I'm sorry I wasn't in time for the advent calendar release!
When migrating a custom emoji used by one team to another team, etc.
--Get custom emoji image
Even though these are troublesome, the help of slack does not clearly describe what to do, so I searched.
Refer to here https://get.slack.help/hc/en-us/articles/206870177-Creating-custom-emoji
API:emoji.list
https://api.slack.com/methods/emoji.list
If you use Tester, you will get an image of Json to get.
There was a person who had already implemented the function I was trying to prepare, so I will use that. https://github.com/jkloo/slack-emojis
Since we are using requests
, if you need to install it, refer to the following.
http://requests-docs-ja.readthedocs.org/en/latest/user/install/
$ sudo pip install requests
From the options to set
$ python get_emojis.py usage: get_emojis.py [-h] [-o OUTPUT] [--trample] slack token get_emojis.py: error: too few arguments
Set as follows.
$ python get_emojis.py
team subdomain`` token
-odownload folder
I would like to register all at once if possible.
Re-registration? That's a little ...
I wanted to prepare a batch registration as a migration method, but I couldn't make it in time. It seems that you can make it if you look at the request when registering from the browser ..., it is best to make it in time with the official API It's a feature that was created about a year ago, and at this point it may be hopeless.
It will be fun if it can be used in character collaboration like LINE stamps.
Recommended Posts