Automatically batch-upload Matrix emojis to your personal emoji pack. Very janky, no guarantees of not destroying your emoji pack list.
Go to file
Natty 7b2e88865c
Support for uploading to rooms
2023-11-18 23:32:51 +01:00
.gitignore Initial commit 2023-09-30 18:18:42 +02:00
README.md Support for uploading to rooms 2023-11-18 23:32:51 +01:00
main.py Support for uploading to rooms 2023-11-18 23:32:51 +01:00
requirements.txt Initial commit 2023-09-30 18:18:42 +02:00

README.md

matrix-emoji-autoupload

Automated emoji uploader for Matrix.

Very janky and without any guarantees.

Usage

A venv setup is recommended.

Install dependencies:

pip -r requirements.txt

Run as a CLI command:

  • Please note the handle has to be in the format @user:instance.org
python main.py [-h] [--tag TAG | --room-id ROOM_ID] [--room-event-id ROOM_EVENT_ID] --token TOKEN --instance INSTANCE emoji_file [emoji_file ...]

positional arguments:
  emoji_file           a list of files to upload

options:
  // Upload to the personal emoji pack:
  --tag TAG            the Matrix handle of the user
  
  // Or upload to a room emoji pack:
  
  --room-id ROOM_ID    the Matrix room to upload the emoji in
  --room-event-id ROOM_EVENT_ID
                       the Matrix room event ID the pack is stored in,
                       leave empty for the default one

  // Required options:
  
  --token TOKEN        a Matrix account bearer token
  --instance INSTANCE  a Matrix instance domain