项目作者: dora1998

项目描述 :
🌙 Edge your slack emojis with white for visibality in dark mode
高级语言: Python
项目地址: git://github.com/dora1998/edged-emoji-maker.git
创建时间: 2020-01-14T16:46:10Z
项目社区:https://github.com/dora1998/edged-emoji-maker

开源协议:MIT License

下载


edged-emoji-maker

A handy tool edging your Slack emojis with white. It improves emoji visibility when you use Slack in dark mode.

Setup

  1. $ poetry install
  2. $ cp .env.sample .env

If you want to import emojis from your workspace, get OAuth Token here. Then set the token in .env file.

Requirements

  • Python 3.7 or higher
  • Poetry

Basic Usage

Import emojis from a workspace

  1. $ poetry run python import.py

Edge emojis

  1. $ poetry run python convert.py

Add emojis in bulk (*)

  1. $ find edged -type f | poetry run python add.py

Remove emojis in bulk (*)

  1. $ find edged -type f | awk -F/ '{split($NF, x, "."); print x[1]}' | poetry run python remove.py

(*) These script use private API. Please run them at your own risk.

FAQ

Can I use this tool for animated emoji?

~No. If you can, please make a PR to this repo!~

-> Now you can convert animated GIF!

How can I get private API token?

  1. Open emoji admin panel (https://{YOUR_WORKSPACE}.slack.com/customize/emoji).
  2. Open Network panel in developer tools.
  3. Find XHR request whose request URL begins “https://{YOUR_WORKSPACE}.slack.com/api/emoji.”.
  4. You can see the token that begins “xoxs-“ in “Form Data” panel.

License

MIT License