TL;DR
A story about automating emoji registration to slack.
https://github.com/smashwilson/slack-emojinator As written here.
git clone https://github.com/smashwilson/slack-emojinator.git
cd slack-emojinator
pip install -r requirements.txt
I just received such a request, so I tried it.
cp .env.sample .env
vim .env
.env
export SLACK_TEAM=ssmjp
export SLACK_COOKIE="(Enclose it in double quotes and paste it all)"
export SLACK_API_TOKEN= #It remains empty here
export EMOJI_DIR=
wget http://cultofthepartyparrot.com/parrots/parrot.gif
source .env
output
python upload.py parrot.gif
Processing parrot.gif.
Uploaded 1 emojis. (0 already existed)
You have now added an emoji called `` `: parrot: ```.
git clone https://github.com/jmhobbs/cultofthepartyparrot.com
cd cultofthepartyparrot.com/parrots
for f in * ; do mv "$f" "parrot_$f" ; done
.env
export EMOJI_DIR=../cultofthepartyparrot.com/parrots
source .env
python upload.py ${EMOJI_DIR}/*.gif
Recommended Posts