Custom Emoji manager command-line for Mattermost 😎
GPL-3.0 License
Custom Emoji manager command-line for Mattermost 😎
Features:
pip install mmemoji
mmemoji --help
(Requires Python >=3.8)
Let's take the Party Parrot Emojis as an example.
git clone https://github.com/jmhobbs/cultofthepartyparrot.com.git
cd cultofthepartyparrot.com
mmemoji
with the arguments --url
/--login-id
/--password
or via environment variables, for example:export MM_URL='http://127.0.0.1:8065/api/v4'
export MM_LOGIN_ID='[email protected]'
export MM_PASSWORD='user-1'
mmemoji
to import all the parrots:mmemoji create --no-clobber {parrots,guests}/hd/*.gif {parrots,guests}/*.gif
Note
- Here we rely on shell globbing to select all emojis from the directories.
- Specifying the
hd
directories first with--no-clobber
ensures these emojis are created first and not overwritten by their lower quality counterpart.
mmemoji delete --force {parrots,guests}/hd/*.gif {parrots,guests}/*.gif
Note
- The emoji names are extracted from the filenames the same way they have been during creation.
--force
is used to ignore the absent low quality duplicates.
uv sync
tests/
:./tests/scripts/setup-mattermost.sh
pytest
pre-commit install